Might you have to launch bash with the -m option? as in #!!/bin/bash -m in the head of the shell script?
-m Monitor mode. Job control is enabled. This option is on by default for interactive shells on systems that support it (see JOB CONTROL above). Background processes run in a separate process group and a line containing their exit status is printed upon their completion. Perhaps it is not on by default unless run interactively? Of course... I am assuming you are talking about bash... On Feb 12, 2008 5:29 PM, willhill <[EMAIL PROTECTED]> wrote: > I'd like to use a shell script to start two process at once, wait a while and > then kill them both. Starting them manually, I'd just use the & redirector > but I can't figure out how to do the same thing in a script. When I try it, > the script waits for one job to be finished. For example: > > kwrite & > konqueror & > sleep 5 > killall kwrite > killall konqueror > > won't start konqueror till I kill kwrite manually and the sleep does not start > until konqueror is finished, then I kill processes that don't exist. > > I poked around Google for a while and Linux in a nutshell but found nothing > but fork bombs. There has got to be a better way. > > _______________________________________________ > General mailing list > General@brlug.net > http://mail.brlug.net/mailman/listinfo/general_brlug.net > _______________________________________________ General mailing list General@brlug.net http://mail.brlug.net/mailman/listinfo/general_brlug.net