brian42miller has asked for the wisdom of the Perl Monks concerning the following question:
which works fine except that the program will not terminate cleanly. I have to ctrl-c it and some times the tail process is left running. Is there something I can do to close the program properly or is there a cleaner way to perform the IPC (of messaging) required? Thanks for the help Brian Millermy $fh = FileHandle->new("> program_ipc_file"); $fh->close; if (-f 'program_ipc_file') { $fh = FileHandle->new("tail -f -n 25 program_ipc_file|"); $widget->fileevent($fh, 'readable', sub {$me->_process_fileevent +});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl non-blocking IPC
by zentara (Cardinal) on Jul 06, 2011 at 15:07 UTC | |
by brian42miller (Sexton) on Jul 06, 2011 at 17:21 UTC | |
by zentara (Cardinal) on Jul 06, 2011 at 18:27 UTC | |
by brian42miller (Sexton) on Jul 07, 2011 at 16:26 UTC | |
by Somni (Friar) on Jul 07, 2011 at 00:23 UTC | |
|
Re: Perl non-blocking IPC
by glasswalk3r (Friar) on Jul 06, 2011 at 15:24 UTC | |
by brian42miller (Sexton) on Jul 06, 2011 at 17:28 UTC |