On Sat, Aug 24, 2002 at 01:51:20AM +0200, Christian Schoenebeck wrote:
| Hi!
|
| I'm wondering how I can fork within a shell script, or bettr let's say how
| to parallel launch programs in a script instead of the sequential way.
|
| I tried to use the & character like this:
|
| for INDEX in ${ALIST[*]};
| do commandbla &;
| done
|
| But that always results in an 'unexpected token' error.
Try this instead :
for INDEX in ${ALIST[*]}; do
commandbla &
done
(leave out the semicolon)
-D
--
Through love and faithfulness sin is atoned for;
through the fear of the Lord a man avoids evil.
Proverbs 16:6
http://dman.ddts.net/~dman/
Attachment:
pgpzGhTRJlqlF.pgp
Description: PGP signature