bit.surfer has asked for the wisdom of the Perl Monks concerning the following question:
I've tried to use the Win32::Process::Info module - but just don't seem to be able to make it work. In the code below I want to determine the process information of the command executed by "system" at the point it is finishing (i.e. I want the final values). Any pointers?
Thx.
#!/usr/bin/perl use Win32::Process::Info; use strict; use warnings; my @models = { "model1", "model2"}; my @cpus = ( 2, 4); foreach my $model (@models) { foreach my $cpu (@cpus) { my $cmdstring = "\"myapp.exe\""; $cmdstring .= " NPROCESSORS=$cpu"; $cmdstring .= " $model"; $cmdstring .= " > nul"; system($cmdstring); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Determining Process Information of Win process
by salva (Canon) on Jun 15, 2015 at 06:25 UTC | |
by BrowserUk (Patriarch) on Jun 15, 2015 at 06:54 UTC | |
|
Re: Determining Process Information of Win process
by Anonymous Monk on Jun 15, 2015 at 03:12 UTC | |
by bit.surfer (Initiate) on Jun 15, 2015 at 03:54 UTC | |
|
Re: Determining Process Information of Win process (a simpler solution)
by Discipulus (Canon) on Jun 15, 2015 at 15:33 UTC | |
|
Re: Determining Process Information of Win process
by Bloodnok (Vicar) on Jun 15, 2015 at 15:41 UTC |