RE: Win32::Process::Create

2008-04-29 Thread Jan Dubois
On Tue, 29 Apr 2008, Shuttlesworth, James wrote: > > I was/am also having this problem, but generally ignored having the > window- I can say for my part I do normally use backticks for most > things, but I use win32process when I want more control over the > process, for instance I want it to run

Re: Win32::Process::Create

2008-04-29 Thread Michael Ellery
Jan Dubois wrote: > > If you need to wait for your subprocesses, then you may want > to use this somewhat obscure form: > > my $pid = system(1, $cmdline); > # ... > waitpid $pid, 0; > > (This is documented in `perldoc perlport` as a Win32 specific extension > to system(), but not me

RE: Win32::Process::Create

2008-04-29 Thread Shuttlesworth, James
D] On Behalf Of Stuart Arnold Sent: Tuesday, April 29, 2008 2:47 AM To: 'Michael Ellery'; 'perl-win32-users' Subject: RE: Win32::Process::Create Not sure why you use Win32Process (I' am sure you have your reasons), but I have scripts that launch child processes and wait for t

RE: Win32::Process::Create

2008-04-28 Thread Stuart Arnold
Not sure why you use Win32Process (I' am sure you have your reasons), but I have scripts that launch child processes and wait for them to terminate. I just use the backticks(``) rather than a "system" command. The script will just hang until the child is done. For the other thing about minimizing

RE: Win32::Process::Create

2008-04-28 Thread Jan Dubois
On Mon, 28 Apr 2008, Michael Ellery wrote: > > ..I use this function pretty regularly to spawn procs on windows, but > I've often wanted to minimize the console or main window that was > launched. Does anyone know how to do this? In the corresponding WIN32 > API, there is a STARTUPINFO structure

Re: Win32::Process::Create

2008-04-28 Thread Michael Ellery
Sisyphus wrote: > > What happens if you launch the script using the wperl executable instead > of the perl executable ? > I don't even know what wperl is, although it does look like it's part of my current perl install (I have never heard of it before now). In any event, it's not an option f

Re: Win32::Process::Create

2008-04-28 Thread Sisyphus
- Original Message - From: "Michael Ellery" <[EMAIL PROTECTED]> To: "'perl-win32-users'" Sent: Tuesday, April 29, 2008 5:24 AM Subject: Win32::Process::Create > ..I use this function pretty regularly to spawn procs on windows, but > I've often wanted to minimize the console or main win

RE: Win32::Process::Create Sillyness!

2004-10-01 Thread Peter Guzis
For there to be a deficiency with this particular aspect of Win32::Process::Create, there would also need to be a deficiency with the underlying CreateProcess() Win32 API. The actual cause here is the omission of "notepad" in the $appname argument. Win32::Process::Create($obj,$appname,$cmdline,