Re: [SLUG] Shell script calling shell script

From: Kwan Lowe (kwan@digitalhermit.com)
Date: Fri Nov 19 2004 - 15:34:08 EST


> If the sections are related, then what you might want to do is something
> like
>
> for subsystem in foo bar baz quux ; do
> $subsystem &
> usleep 100000 # optional
> done
>
> Nice and short, and you're assured that you call the subsystems in the
> same way. Easy to add/delete subsystems, too.
>

Instead of a sleep, you may want to use "wait" instead. It will pause the
script until the sub returns.

-- 
* The Digital Hermit   http://www.digitalhermit.com
* Unix and Linux Solutions   kwan@digitalhermit.com
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:44:42 EDT