===
> 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
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
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
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",
>
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
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,
"
; # 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
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'
..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
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
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
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
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
15 matches
Mail list logo