[TriLUG] How to spawn separate process and get pid.
Wesley Zhang
xyzhang at cisco.com
Fri Jan 21 11:49:15 EST 2005
Hi All,
I am a newbie on shell script. But I would like to use linux shell
script to control a job that runs forever and will be terminated after
10 minute. My thought for this is following:
pid = start-job-for ("cmd") // has to be a separate process
sleep 10 min
kill pid.
How can I spawn a separate process to execute my command and get the
proper process id?
Thanks,
Wesley
More information about the TriLUG
mailing list