CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: net:telnet to read files getting timed out: Edit Log



asat
Novice

Jul 9, 2003, 4:33 AM


Views: 986
net:telnet to read files getting timed out

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)


Edit Log:
Post edited by asat (Novice) on Jul 9, 2003, 4:34 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives