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
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
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
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
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
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
- 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
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,