
asat
Novice
Jul 9, 2003, 4:33 AM
Post #1 of 3
(640 views)
|
|
net:telnet to read files getting timed out
|
Can't Post
|
|
I am writing script to read the remote files. Part of that I written small script but it's getting timed out. Please help! use Net::Telnet (); $t = new Net::Telnet (Timeout => 20, Prompt => '/bash\$ $/'); $t->open("machinename"); $username = username; $passwd = passwd; $t->login($username, $passwd); @lines = $t->cmd("who"); print @lines; Thanks, Asat
(This post was edited by asat on Jul 9, 2003, 4:34 AM)
|