[NCLUG] Bashing lost children
Michael Dwyer
mdwyer at sixthdimension.com
Wed Apr 10 10:59:22 MDT 2002
Well... except in a case like this:
sleep 30 | logger &
echo $! >/var/run/sleep.pid
it stores the PID of 'logger' instead of sleep... Argh.
Michael Dwyer wrote:
>
> Wooooohooo!! Thank you! It is in the man page, too, but I was
> searching for the word "PID". I didn't think of searching for "process
> ID"... sheesh. Thanks again!
>
> Tkil wrote:
> >
> > >>>>> "Michael" == Michael Dwyer <mdwyer at sixthdimension.com> writes:
> >
> > Michael> Okay, so you know how the shell variable $$ stands for the
> > Michael> PID of the shell? Great. Now, what if you want to keep
> > Michael> track of the PID of a process that the shell spawns.
> >
> > info '(bash)Special Parameters':
> >
> > | `!'
> > | Expands to the process ID of the most recently executed
> > | background (asynchronous) command.
> _______________________________________________
> NCLUG mailing list NCLUG at nclug.org
>
> To unsubscribe, subscribe, or modify your settings, go to:
> http://www.nclug.org/mailman/listinfo/nclug
More information about the NCLUG
mailing list