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

 



asat
Novice

Jul 9, 2003, 4:33 AM

Post #1 of 3 (888 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)


davorg
Thaumaturge / Moderator

Jul 10, 2003, 1:23 AM

Post #2 of 3 (878 views)
Re: [asat] net:telnet to read files getting timed out [In reply to] Can't Post

Maybe you could increase the time out setting?

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


asat
Novice

Jul 14, 2003, 2:42 AM

Post #3 of 3 (870 views)
Re: [davorg] net:telnet to read files getting timed out [In reply to] Can't Post

Angelic hi Dave,

When I changed the prompt, to % it worked!

Thanks,

Asat

 
 


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

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