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

Re: Sz command hanging and outputting ZNAK’s

by SimonClinch (Deacon)
on May 18, 2011 at 13:30 UTC ( #905476=note: print w/replies, xml ) Need Help??


in reply to Sz command hanging and outputting ZNAK’s

You could use IPC::Open3 (saving the child pid it returns) to run the command and read its output from filehandles. Then if you don't like what it is doing on that basis, closing the filehandles will terminate the child and the parent can waitpid the pid of the child before iterating the next remote device cleanly.

One world, one people

  • Comment on Re: Sz command hanging and outputting ZNAK’s

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://905476]
help
Chatterbox?
[marto]: good morning all
[Corion]: Hi marto!
[Corion]: I hope all is well marto! ;) My godson had a surprise visit to the hospital yesterday because he fell and had cut his skin besides his eye, but everything was glued together again and all is well
[marto]: good grief, that's not fun, glad to hear all is as well as could be :)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2016-12-08 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (137 votes). Check out past polls.