Re: wait PID for an arbitrary PID
From: Chris Mattern (syscjm_at_gwu.edu)
Date: 09/02/03
- Next message: Barry Margolin: "Re: Feeding filelist to cp"
- Previous message: joe_at_invalid.address: "Re: Question about redirection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 02 Sep 2003 12:20:06 -0400
Dan Jacobson wrote:
> Wanting to do a
> $ wait PID
> for an arbitrary PID, no necessarily a child, what should I use?
> Bash? No. Perl?
Er, you can't wait for something that's not a child of the current
process. UNIX process semantics don't work that way. Basically,
you're going to have to poll the running processes to see if it's
still there, or else have the process you want to track notify you
in some way of its termination.
Chris Mattern
- Next message: Barry Margolin: "Re: Feeding filelist to cp"
- Previous message: joe_at_invalid.address: "Re: Question about redirection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|