On Fri, 19 Nov 2004, Kwan Lowe wrote:
> > 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.
Will that have any effect with a "&"? If all of the subsystems start and
then return control, you're right; "wait" is better than "usleep".
-- -eben ebQenW1@EtaRmpTabYayU.rIr.OcoPm home.tampabay.rr.com/hactarHanlon's Razor: "Never attribute to malice that which can be adequately explained by stupidity." Derived from Robert Heinlein
----------------------------------------------------------------------- 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:52 EDT