in reply to Re: Waiting For Input
in thread Waiting For Input
No Temp.pl does not need any input nor any pause. Rather the main scipt conatins this:
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(); $state = 1; while( <STDIN> ) { if( $state ) { $$ProcessObj->Suspend(); $state = 0; } else { $$ProcessObj->Resume(); $state = 1; } }
How do i end both the scripts? i think it is the main script that keeps on waiting..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Waiting For Input
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 | |
by Anonymous Monk on Mar 04, 2013 at 09:28 UTC | |
by Corion (Patriarch) on Mar 04, 2013 at 09:38 UTC |
In Section
Seekers of Perl Wisdom