If that's what you want, I'd recommend using fork. I did something similar a while back, using fork, as described in Timing and timing out Unix commands. If you get it working without using fork, I'd be interested in seeing your code.
In reply to Re^3: Getting PID of process forked by backticks
by eyepopslikeamosquito
in thread Getting PID of process forked by backticks
by paulski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |