Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Can't get cmd_remove_mode to work in Net::Telnet

by gctaylor1 (Hermit)
on Jan 15, 2009 at 20:53 UTC ( #736670=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl 
    use strict;
    ...
    my @distro = $t->cmd(String => "cat /etc/redhat-release",
                cmd_remove_mode => '1');
    print "@distro";
    
  2. or download this
    $ ./connect.pl
     $ cat /etc/redhat-release
     CentOS release 5 (Final)
    
  3. or download this
    my @distro = $t->cmd(String => "cat /etc/redhat-release",
                cmd_remove_mode => '2');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://736670]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2014-08-22 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (159 votes), past polls