Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Net::Telnet and telnet command output

by Rhys (Pilgrim)
on Oct 04, 2004 at 12:32 UTC ( [id://396204]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Net::Telnet ();
    $t = new Net::Telnet (Timeout => 10,
    ...
    $t->login($username, $passwd);
    @lines = $t->cmd("who");
    print @lines;
    
  2. or download this
    $ref = $obj->buffer;
    
  3. or download this
    $data = $obj->get([Binmode    => $mode,]
                      [Errmode    => $errmode,]
                      [Telnetmode => $mode,]
                      [Timeout    => $secs,]);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://396204]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found