[ale] Silly bash question
John Mills
johnmills at speakeasy.net
Wed Nov 11 14:25:13 EST 2009
Tim -
Clean. Thanks.
On Wed, 11 Nov 2009, Tim Watts wrote:
> #/bin/bash
> CAPTURE=output.log
> for c in "$@"; do
> $c >>"$CAPTURE" 2>&1 &
> PIDS="$PIDS $!"
> done
> echo "$PIDS"
> Then call it like this:
> <script-name> "echo test1" "echo test2" "echo test3"
> On Wed, 2009-11-11 at 11:12 -0500, John Mills wrote:
>> I want to write a bash script to launch several processes into background
>> without waiting for them to exit, and return a list of their PIDs.
More information about the Ale
mailing list