Dear all :

I see these lines in a perl program :

$pif = fork;
if($pid == 0) {
  exec("hpxy  -s   xxx.abc");
}else{
  $pid1=wait;
}

I could understand that the fork is needed here to get into the child
process "hpxy" !!
What is the need for the "wait" here ??  When will the "else" loop be
entered ??

Thanks,
Ravi


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to