in reply to Re: Killing process group run with IPC::Open3
in thread Killing process group run with IPC::Open3
Hi ikegami,
That's a good point and infact I tried exec first (that's why use of setpgrp). But problem is I also need to capture <stdin> in my app. Here is example:
> cat app.pl
print "continue? "; $yesno=<STDIN>; print "--$yesno";
> perl fixed.pl 5 perl -e 'system("perl app.pl")'
continue? y
alarmed out
sent kill signal to 1
^C
> perl test.pl 5 perl -e 'system("perl app.pl")'
continue? y
--y
Child exit status: 0 signal: 0
Is there any way to map <STDIN> in fixed.pl ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Killing process group run with IPC::Open3
by ikegami (Patriarch) on Feb 03, 2012 at 07:22 UTC | |
by pm_sanchay (Initiate) on Feb 03, 2012 at 07:49 UTC | |
|
Re^3: Killing process group run with IPC::Open3
by ikegami (Patriarch) on Feb 03, 2012 at 07:06 UTC |