>> 2.  How do I set off a new process, not waiting or caring about any
>> return values?
>>
>> $myApp = "/proj/mycoolexecutable";
>> $myOptions = "-f -n2 file1 file2";
>> # execute $myApp." ".$myOptions here, and do not wait for any return
>> values
>
> See:
>   perldoc -f fork
>   perldoc -f exec


Thanks for replying zsdc.  The $1,$2 thing makes perfect sense now.

As for the fork/exec thing, those pages are a little over my head.  I
don't understandhow process signals and pipes work.

Really, all I want the perl script to do is the equivalent of typing $myApp."
".$myOptions at the command line, sending its output to STDOUT.  This
script readsin all input files passed to it, determines which executable applies to
each, andlaunches that executable with that file as a parameter.  It may need to
launch 5 or 6processes, but I want it to gracefully exit when it's done launching and
not wait tillthose processes finish.  Does that make sense?  Is that even possible?

Thanks again.

- Bryan






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

Reply via email to