RE: Help with Win32::Process::Create()

2011-08-23 Thread Ken Slater
=== > use strict; > use warnings; > use Win32::Process; > > # Parameters for the Win32::Process::Create function: > # > # Process This is an empty string that will receive > #a process ID used to address the child process. > #Returns

RE: Help with Win32::Process::Create()

2011-08-23 Thread Jan Dubois
On Tue, 23 Aug 2011, Barry Brevik wrote: > > I ALREADY HAVE some code that does this (see below). My question is- is > there a way to periodically poll the outside process to determine if it > is still running? I've tried a few things already and none of them work. if (defined $process) { if

Help with Win32::Process::Create()

2011-08-23 Thread Barry Brevik
question is- is there a way to periodically poll the outside process to determine if it is still running? I've tried a few things already and none of them work. = the code = use strict; use warnings; use Win32::Process; # Parameters for the Win32::Proc

RE: Win32::Process::Create

2008-04-29 Thread Jan Dubois
want it to run for a certain amount of time and > then kill it. For instance a little snippet that shows a PowerPoint > slide for 15 seconds > > Win32::Process::Create($goodfile, >"c:\\progra~1\\microsoft office\\powerpoint viewer\\PPTVIEW.EXE", >

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
a little snippet that shows a PowerPoint slide for 15 seconds Win32::Process::Create($goodfile, "c:\\progra~1\\microsoft office\\powerpoint viewer\\PPTVIEW.EXE", "PPTVIEW.EXE \"$goodfile\" /s", 0, NORMAL_PRIORITY_CLASS, "

RE: Win32::Process::Create

2008-04-28 Thread Stuart Arnold
; # SW_MINIMIZE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ellery Sent: Monday, April 28, 2008 3:24 PM To: 'perl-win32-users' Subject: Win32::Process::Create ..I use this function pretty regularly to spawn procs on windows, but I'v

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'

Win32::Process::Create

2008-04-28 Thread Michael Ellery
..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 that allows this, but looks like it's not part of

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

Win32::Process::Create Sillyness!

2004-10-01 Thread Erik Felton
Hello, I've checked the mailing list archive on active state and I can find no reference of my issue ever being mentioned. If it has, I apologize in advance for covering old ground. Anyway, I just found what IMHO is a deficiency with Win32::Process::Create. The 3 parameter (argu

Win32::Process::Create

2002-02-04 Thread Ashish . Tiwari
I have a script which runs several programs depending upon the contents of a state table ( implemented as a hash). The main script and the spawned processes write into the state table and also read from it before they perform something. Is it necessary to implement the state table as a Shared M

Re: Is UNC not supported with Win32::Process::Create?

2001-06-26 Thread Sisyphus
Hi, > With Win32::Process::Create...(and CREATE_NEW_CONSOLE flag) > > this works => u:\\mydir\\test.exe > but this does not => myserver\\mydir\test.exe > Best to add error catching code to the 'Win32::Process::Create' call. Something like : or die ErrorRepo