Re: wait PID for an arbitrary PID

From: Chris Mattern (syscjm_at_gwu.edu)
Date: 09/02/03


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



Relevant Pages

  • Re: wait PID for an arbitrary PID
    ... >for an arbitrary PID, no necessarily a child, what should I use? ...
    (comp.unix.shell)
  • Re: wait PID for an arbitrary PID
    ... > for an arbitrary PID, no necessarily a child, what should I use? ...
    (comp.unix.shell)
  • wait PID for an arbitrary PID
    ... for an arbitrary PID, no necessarily a child, what should I use? ... Bash? ... No. Perl? ...
    (comp.unix.shell)
  • Re: wait PID for an arbitrary PID
    ... >for an arbitrary PID, no necessarily a child, what should I use? ...
    (comp.unix.shell)
  • Guidance to any info please
    ... changing jobs and location to escape the CSA, she overlooked the fact he is ... year old but can for the younger 18 month child due to law changes between ... as I can only see bad reasons for him wanting them as he has never shown and ...
    (uk.gov.agency.csa)