J
Jianli Shen
Hi,
I write the following script,
hope it call "atouRcv -b ***** & " in each iteration.
however, it only call once when $port=6811
is that because: exec will not call the END block, nor will it call any
DESTROY method in the object ???
how can I make this loop work ??
Thanks
#!/usr/bin/perl
my $port=6811;
foreach my $r ( 0, 50, 200 ){
foreach my $l (0, 0.01, 0.05){
for (my $i=0; $i<=9; $i++) { #each run 10times
exec "atouRcv -b 2000000 -r ". $r . " -l ". $l . " -p " . $port . " &
";
$port += 1;
}
}
}
I write the following script,
hope it call "atouRcv -b ***** & " in each iteration.
however, it only call once when $port=6811
is that because: exec will not call the END block, nor will it call any
DESTROY method in the object ???
how can I make this loop work ??
Thanks
#!/usr/bin/perl
my $port=6811;
foreach my $r ( 0, 50, 200 ){
foreach my $l (0, 0.01, 0.05){
for (my $i=0; $i<=9; $i++) { #each run 10times
exec "atouRcv -b 2000000 -r ". $r . " -l ". $l . " -p " . $port . " &
";
$port += 1;
}
}
}