in reply to open with pipe

See the return value of open. I think on some operating systems, you can check with kill whether a process still exists under that pid:

my $pid = open ...; kill 0 => $pid;

Also see perlport, as mentioned in kill.

Replies are listed 'Best First'.
Re^2: open with pipe
by daverave (Scribe) on Jul 31, 2010 at 13:26 UTC
    Following your recommended reading, I now see that "closing any piped filehandle causes the parent process to wait for the child to finish" which solves my problem.

    Thanks!