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, XXXX) 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 for the
child, doesn't it?
waitpid($pid, !WNOHANG) ===> will wait for the child? 
what is the meaning of the '&'?
Is there another flag?

Ulises

Peter Cornelius wrote:
> 
> 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-----

Reply via email to