> I can't use system because , a nested command in my program is not
> allowed, so i try the fork.
> I try with waitpid($pid, ) but i didn't know how to tell
> the waitpid
> that waits for the child and don't continue
>
> waitpid($pid,&WNOHANG) > continues execution without
> waiting f
Thanks for your help.
I can't use system because , a nested command in my program is not
allowed, so i try the fork.
I try with waitpid($pid, ) but i didn't know how to tell the waitpid
that waits for the child and don't continue
waitpid($pid,&WNOHANG) > continues execution without waiti
I see a posting suggesting using system() which does sound like a good
solution. If for some reason you need to fork explicitly look at waitpid()
I think it will do what you want.
Peter C.
> -Original Message-
> From: Ulises Vega [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001
On Mon, 4 Jun 2001, Ulises Vega wrote:
> I'm using fork with a simple application, and it looks like if the
> father process continues executing without waiting his child, the
> following is the code that i use:
Seems like you want to use the system command instead.
system PROGRAM LIST