Schrift
[thread]9126[/thread]

[Win] überprüfen ob programm noch läuft



<< >> 2 Einträge, 1 Seite
Gast Gast
 2007-06-26 23:40
#77874 #77874
hallo,
ich will unter windows mit perl überprüfen ob ein bestimmtes programm noch läuft...
z.b. test.exe

wie stell ich das am besten an?
renee
 2007-06-27 00:38
#77875 #77875
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl

use strict;
use warnings;
use Win32::Process::List;

my $list = Win32::Process::List->new;
my %hash = $list->GetProcesses;
if( grep{ /wperl\.exe/ }values %hash ){
    print "wperl.exe laeuft noch\n";
}
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
<< >> 2 Einträge, 1 Seite



View all threads created 2007-06-26 23:40.