in reply to Perl non-blocking IPC

Anyway how the program being called and how it executed, yo will need to manager if you're invoking it from the Tk program. You had not told in which operational system you're running that, but for UNIX like systems you should look at the functions fork, open, waitpid and POSIX signals.

If you have control of the program being executed (you can modify it's source code), this will be even easier.

Regarding the See IO::Select to try to use non-blocking reading.

Alceu Rodrigues de Freitas Junior
---------------------------------
"You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill

Replies are listed 'Best First'.
Re^2: Perl non-blocking IPC
by brian42miller (Sexton) on Jul 06, 2011 at 17:28 UTC
    Thanks for the response,

    The OS is CentOs Linux. The program that is sending the command to the Tk-program is external and unrelated.

    Are you suggesting that the fileevent method is not the best way to listen and process external commands in a non-blocking way?

    Thanks Brian