Thread

Posted on Fri May 9 16:52:34 2008 by sherkan
problem executing basic script.
Hello, I Install net::appliance:session and i put this code
use Net::Appliance::Session; my $s = Net::Appliance::Session->new(Host => '192.168.0.1'); eval { $s->connect(Name => 'XXXX', Password => 'XXXX'); $s->begin_privileged('XXXX'); print $s->cmd('show access-list'); $s->end_privileged; }; if ($@) { $e = Exception::Class->caught(); ref $e ? $e->rethrow : die $e; } $s->close;
bubt i tried to execute and i get this.
[csilva@csilva Scripts]$ perl appliance.pl no loader available of that name at /usr/lib/perl5/vendor_perl/5.8.8/Data/Phrasebook/Generic.pm line 269
any ideas? i don't know what's happend thx
Direct Responses: 7848 | Write a response
Posted on Sat May 10 17:21:29 2008 by oliver in response to 7844
Re: problem executing basic script.
Hi sherkan, I think you're missing the Data::Phrasebook::Loader::YAML module. Do you have all the module dependencies listed here installed? http://search.cpan.org/~oliver/Net-Appliance-Phrasebook-0.09/lib/Net/Appliance/Phrasebook.pm#DEPEND +ENCIES regards, oliver.
Direct Responses: 7858 | Write a response
Posted on Mon May 12 17:09:44 2008 by sherkan in response to 7848
Re: problem executing basic script.
your'e rigth, thanks a lot :D now is working bye.
Write a response