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
--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

Reply via email to