Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Perl Script to enable Cisco

by i5513 (Pilgrim)
on Jul 23, 2012 at 18:30 UTC ( #983222=note: print w/replies, xml ) Need Help??

in reply to Perl Script to enable Cisco

Of course, it is ok playing with ssh / telnet / expect modules, but sometimes there are programs which work like you expect. Not need of reinvent the weel :-)

For this case (and if you are not in Windows OS), I recommend you take a look to rancid, and its ~ "/.login/" commands

Replies are listed 'Best First'.
Re^2: Perl Script to enable Cisco
by Null_Route0 (Initiate) on Jul 23, 2012 at 18:40 UTC
    Running Fedora 16 so I'll take a look at Rancid.

    I figured this project would be a fun introduction to the wild world of Perl =)

    Its much easier to learn things when you have some sort of context to work with and I've learned a ton, but I just wish I had a little more success getting this to work

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://983222]
[Lady_Aleena]: What?! Can't stat ~/Music: No such file or directory? The ~/ doesn't expand?
[Lady_Aleena]: And the env variable $HOME doesn't work either. !@#$
[shmem]: no, that's a shell feature. Use $ENV{HOME}
[marioroy]: my $ans = qx{ find \$HOME -name "*.pl" -exec ls -l {} \\; };
[marioroy]: must backslash $ inside qx

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-04-23 21:02 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.