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
In reply to Re^2: Perl non-blocking IPC
by brian42miller
in thread Perl non-blocking IPC
by brian42miller
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |