>>>>> "Pankajwarade" == Pankajwarade <[EMAIL PROTECTED]> writes:
Pankajwarade> I am tring to use IO::Socket module in order to execute Pankajwarade> the commands on remote server. Perl script connects Pankajwarade> remote server on port 23, and waits for login prompt Pankajwarade> forever. It recieves non-printable characters instead Pankajwarade> of login prompt. ... Pankajwarade> I userstand, I can use Net::Telnet module also for the same.But, tring to Pankajwarade> make it work with IO:Socket. Pankajwarade> Any input on this will really be appreciated. If you're connecting to port 23, be prepared to speak the Telnet protocol, which starts by sending handshaking characters to see if the other end can handle echo-ing and out-of-band messages and such. Telnet protocol is *mostly* a character-for-character thing, but there are some metacharacters that are used for administration. What keeps you from just using Net::Telnet, which does indeed handle all of this automatically? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]