[lug] Controlling Process Order/Timing

Alan Robertson alanr at suse.com
Sat Nov 25 18:03:50 MST 2000

SoloCDM wrote:
> I'm trying to force commands following each other in a script to
> execute one at a time once the preceding command has finished.
> I applied the command nice with the options to a list of commands and
> didn't get the results I was seeking.  I'm aware that pidof, grep,
> sed, and a few others can do the job, but not without a loop.
> I'm looking for a command that has all the processing built-in without
> "reinventing-the-wheel."
> Note: When you reply to this message, please include
>       the mailing list and my email address.

I'm not sure why you're running them in the background if you want to wait
on them anyway...

Have you tried wait?  It waits on the $! process to finish.

	-- Alan Robertson
	   alanr at suse.com

More information about the LUG mailing list