Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::Process; use Win32; sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); } Win32::Process::Create($ProcessObj, "C:\\Perl\\bin\\perl.exe", "perl temp.pl", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport();
I use the following code to invoke temp.pl from main.pl script. Temp.pl script runs and completes execution and then keeps on waiting ie does not end(The cmd cursor keeps blinking even after the Temp.pl script is run). Why??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Waiting For Input
by Anonymous Monk on Mar 04, 2013 at 08:11 UTC | |
by Anonymous Monk on Mar 04, 2013 at 08:20 UTC | |
by Corion (Patriarch) on Mar 04, 2013 at 08:34 UTC | |
by Anonymous Monk on Mar 04, 2013 at 09:16 UTC | |
by ww (Archbishop) on Mar 04, 2013 at 12:22 UTC | |
by Corion (Patriarch) on Mar 04, 2013 at 09:18 UTC | |
|