beenden wollte ich mit last
bsp.:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#================================================
sub Button_EVILS_Click { # Button Klick
$count = 0;
my $pid = undef;
if(-e $config{"SRS"}){#
}else{&errmsg;}
open(FILE, "$config{\"SRS\"}");
my @sfile = <FILE>;
close FILE;
foreach $x (@sfile){ $pbmax++; }
$Main->RSPB->SetRange(0, $pbmax);
$x = undef;
foreach $x (@sfile){
chomp $x;
if(defined($pid = fork)){
if($pid){
last;
} else {
$count++;
$Main->RSPB->SetPos($count);
open(README, "meine.exe $x 1 |");
my @res = <README>;
close README;
$Main->RichEdit->Text("$x\n\n@res");
my @news = split / /,$res[6];
if($news[0] eq "ok"){
$List_rs->AddString("$x");
}
}
}
}
}
#================================================
werd mich mal in die Win32::API einlesen
Danke für die Antwort