in reply to Re: Perl non-blocking IPC
in thread Perl non-blocking IPC
By 'receive commands', I just mean that some other program writes a text message to the file that the tk-program is looking at (through the fileevent method). The tk-program then gets a call to the _process_fileevent method, reads the file handle and does whatever it says.
I am attempting to use the 'kill 9' command from your code however I and using the FileHandle module to open the pipe so I don't now how to get the pid of the tail process. Any suggestions?
$fh = FileHandle->new("tail -f -n 25 command_file |");Thanks again Brian
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl non-blocking IPC
by zentara (Cardinal) on Jul 06, 2011 at 18:27 UTC | |
by brian42miller (Sexton) on Jul 07, 2011 at 16:26 UTC | |
|
Re^3: Perl non-blocking IPC
by Somni (Friar) on Jul 07, 2011 at 00:23 UTC |