Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 studying the Monastery: (3)
As of 2016-10-01 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (9 votes). Check out past polls.