[ale] Silly bash question

James Sumners james.sumners at gmail.com
Wed Nov 11 11:25:33 EST 2009


#!/bin/bash

yes > /dev/null &
yesPID=$!

tail -f /var/log/messages &
tailPID = $!

echo "PID of yes process:"
echo $yesPID

echo "PID of tail process:"
echo $tailPID

On Wed, Nov 11, 2009 at 11:12 AM, John Mills <johnmills at speakeasy.net> wrote:
> ALErs -
>
> 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.
>
> Must be simple but I keep stumbling on this.
>
> Actually PERL would be OK, too.
>
> TIA.
>
>  - Mills



-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59



More information about the Ale mailing list