Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 browsing the Monastery: (13)
As of 2015-07-29 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls