|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: Open a telnet session with login using batch scriptby jethro (Monsignor) |
| on Aug 14, 2008 at 11:32 UTC ( #704329=note: print w/ replies, xml ) | Need Help?? |
|
Without showing us the script you used, our only recourse is to use random guessing what you did My guess is that you just printed YYYY and ZZZZZ on STDOUT and that didn't work because STDOUT of the script is not connected to STDIN of the script. To do that you either use the module Expect (which is a general solution for scripts to call interactive command line programs, or Net::Telnet which is tailored especially to telnet communication. You can find both modules either in your local perl library or on CPAN
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||