Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Incorrect value 0 reported in command execution return value variable $?, when trying with expect->send command

by Perlbotics (Archbishop)
on Feb 25, 2012 at 14:20 UTC ( [id://956117]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "$command ; echo COMMAND_RET:$? | sed 's/^/COMMAND_OUT: /g'; ech
    +o -n END_; echo EXPECT\n";
    
  2. or download this
    $exp->send("$command ; echo 'COMMAND_OUT: COMMAND_RET:'\$?; echo END_E
    +XPECT\n");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-03-28 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found