Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
laziness, impatience, and hubris
 
PerlMonks  

Re: Forced to modify perl telnet script to use both telnet and ssh

by Illuminatus (Curate)
on Aug 31, 2012 at 21:45 UTC ( #991095=note: print w/ replies, xml ) Need Help??


in reply to Forced to modify perl telnet script to use both telnet and ssh

...tasked with modifying a perl script...refuses to rewrite existing script...
Which is it? It isn't clear to me which problem you're trying to solve, and what tools you have available. If you have an ssh-based solution already, then all you need to do is try telnet; if you get 'connection refused', then you have to use ssh. As for openCSW vs CPAN, they aren't mutually exclusive. If the prebuilt module you want isn't on openCSW then you can download and build it from CPAN (unless your boss won't let you do this either). Maybe if you posted what you do now, and where it needs to diverge to support ssh it would be clearer.

Of course, you *could* just write it in Expect, call the finished product newscript.pl (but with '#! expect' at the top), and he'd be none the wiser...

fnord


Comment on Re: Forced to modify perl telnet script to use both telnet and ssh
Re^2: Forced to modify perl telnet script to use both telnet and ssh
by essej1 (Novice) on Sep 05, 2012 at 17:25 UTC
    I've replied about the ssh/telnet issue. And my boss actually does know how to write perl. He just can't stand changes.
    Paradise: Florida, full tank of gas, no appointments.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991095]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-04-23 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (555 votes), past polls