in reply to If not fork(), then what ?
The third argument is supposed to be command line arguments, but for some reason you have to include 'perl' as well as any arguments. See the Win32::Process docs for the ErrorReport() function (which basically just regurgitates $^E).Win32::Process::Create(my($procobj), "C:\\Perl\\bin\\perl.exe", "perl C:\\path\\to\\another_perl_script.pl", 0, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, ".", # path to working directory ) or die ErrorReport();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: If not fork(), then what ?
by BB_ (Initiate) on Sep 27, 2002 at 01:19 UTC |