in reply to how to kill subprocess when it goes longer than 20 seconds?
open returns the child's PID on success. You can use kill along with this PID to end the process.
That leaves you with waiting for 20 seconds. alarm is one way to go.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to kill subprocess when it goes longer than 20 seconds?
by echoangel911 (Sexton) on Mar 28, 2007 at 17:28 UTC | |
by izut (Chaplain) on Mar 28, 2007 at 17:41 UTC |