[ale] Silly bash question
Mills John M-NPHW64
Jmills at motorola.com
Wed Nov 11 11:33:35 EST 2009
James -
Exactly what I had in mind. Thanks.
- Mills
-----Original Message-----
From: ale-bounces at ale.org on behalf of James Sumners
Sent: Wed 11/11/2009 11:25 AM
To: John Mills; Atlanta Linux Enthusiasts - Yes! We run Linux!
Subject: Re: [ale] Silly bash question
#!/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
_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3302 bytes
Desc: not available
Url : http://mail.ale.org/pipermail/ale/attachments/20091111/8dd4f9ab/attachment-0001.bin
More information about the Ale
mailing list