Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: how to stop command

by sundialsvc4 (Abbot)
on Jul 23, 2018 at 14:20 UTC ( [id://1219104]=note: print w/replies, xml ) Need Help??


in reply to Re: how to stop command
in thread how to stop command

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: how to stop command
by haukex (Archbishop) on Jul 23, 2018 at 18:00 UTC
    it will kill the system-command subprocess (not just abandon it to keep running), and leave the accumulated output intact? Cool.

    No, neither of those things are true, and I didn't claim they were. The OP is running ls, which should normally end on its own, even if it takes longer than 5 seconds to list the files (I'm guessing a slow network mount or similar). Which is also why I suggested IPC::Run - it supports getting partial output, plus a kill_kill method to make sure the child is killed, if either of those things are desired.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-23 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found