Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: perl-expect interact command

by Frits (Initiate)
on Jul 02, 2012 at 11:23 UTC ( #979418=note: print w/ replies, xml ) Need Help??


in reply to Re: perl-expect interact command
in thread perl-expect interact command

The pid is not closing the process as expected. Next to this is that this is hanging the script to be closed. Also the second option to just keep sending an exit also closes sessions at times that I'm still logged into the device.. I suspect that when there is an option of doing a expect in the interact will solve my issue. The point is that all options I have tried failed.


Comment on Re^2: perl-expect interact command
Re^3: perl-expect interact command
by Neighbour (Friar) on Jul 02, 2012 at 12:58 UTC
    Ok...how about looking at $exp->exitstatus() or using the $escape_sequence in $exp->interact()?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-09-19 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls