in reply to killing interactive child processes

I just did something like this recently... If your interactive process reads from STDIN, why not try:

system("echo q | program_name > $out_file");

And skip the call to sleep.
You may even be able to use:

system("echo | program_name > $out_file");

since most interactive programs will exit when they read an EOF.

-rew

Replies are listed 'Best First'.
Re: Re: killing interactive child processes
by merlyn (Sage) on Feb 27, 2001 at 00:46 UTC