Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Expect command output parser sub

by vishi (Beadle)
on Jan 03, 2012 at 07:20 UTC ( #946009=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $sshMTT1->clear_accum();
    $sshMTT1->expect(10,[qr/\$[\s]*/=> sub {$sshMTT1->send("grep <<<<<<*PA
    +TTERN>*>>>>");}]);
    ...
    $sshMTT1->send("\cC");
    $exactOutput = $Output[3];
    $exactOutput =~ tr/\cM//d;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2023-11-28 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?