Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
[Corion]: Oooh. I didn't know about Flightgear. I've been looking at maybe playing with a flight simulator again, thanks!
[RonW]: Glad to be helpful

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-02-27 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (390 votes). Check out past polls.