Eradicatore has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone have any idea how I might make this work? Maybe using some other piping or socket type operations? I am on Windows, though, so the perl there doesn't yet fully support fork when you use other thread unsafe modules. I've found that out the hard way several times. Thanks for any info!!!#!/usr/bin/perl -w # loader - starts Perl scripts without the annoying DOS window use strict; use Win32; use Win32::Process; # Create the process object. Win32::Process::Create($Win32::Process::Create::ProcessObj, 'D:/perl/bin/perl.exe', # Whereabouts of Perl 'perl c:/f1.pl', # 0, # Don't inherit. DETACHED_PROCESS, # ".") or # current dir. die print_error(); sub print_error() { return Win32::FormatMessage( Win32::GetLastError() ); }
Justin Eltoft
"If at all god's gaze upon us falls, its with a mischievous grin, look at him" -- Dave Matthews
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: IPC::Open2, Tk, and DOS window
by jlongino (Parson) on Oct 03, 2001 at 20:22 UTC | |
by Eradicatore (Monk) on Oct 03, 2001 at 20:34 UTC | |
by jlongino (Parson) on Oct 03, 2001 at 20:56 UTC | |
by tye (Sage) on Oct 04, 2001 at 19:36 UTC |