Dear Monks,
I'm wondering if you can kill a process that you started with a pipe, e.g.:
open $PIPE_READER, "some_command |";
The IPC docs seem to suggest that you can:
You might notice that you could use backticks for much the same effect as opening a pipe for reading:
<snip code>
While this is true on the surface, it's much more efficient to process the file one line or record at a time because then you don't have to read the whole thing into memory at once. It also gives you finer control of the whole process, letting you to kill off the child process early if you'd like.
section: Using open() for IPC
In reply to pipes: killing the child? by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |