[ale] Silly bash question
Jerald Sheets
questy at gmail.com
Wed Nov 11 11:42:37 EST 2009
I was going to recommend "screen" as well. VERY elegant way to manage many
things.
---
Jerald M. Sheets jr.
On Wed, Nov 11, 2009 at 11:33 AM, Mills John M-NPHW64
<Jmills at motorola.com>wrote:
> 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
>
>
> _______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20091111/668636e4/attachment.html
More information about the Ale
mailing list