> I'm trying to set up Net::Telnet  so I may or may not have done it correctly.  It 
>also gave an example program that I tried, but I got an error.
> Example program:
> use Net::Telnet ();
> $t = new Net::Telnet (Timeout => 10, Prompt => '/bash\$ $/');
> $t->open ("sparky");
> $t->login($username, $passwd);
> @lines = $t->cmd("/usr/bin/who");
> print @lines;


Are you sure this is the exact code?
Don't you by any chance have "Use" instead of "use" on the first 
line?

Jenda
 

== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think?  :-)
             -- Larry Wall in <[EMAIL PROTECTED]>
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to