Leser: 1
6 Einträge, 1 Seite |
system('super.exe parameter1 parameter2');
1
2
3
@args = ("command", "arg1", "arg2");
system(@args) == 0
or die "system @args failed: $?"
1
2
3
4
5
6
7
8
9
10
if ($? == -1) {
print "failed to execute: $!\n";
}
elsif ($? & 127) {
printf "child died with signal %d, %s coredump\n",
($? & 127), ($? & 128) ? 'with' : 'without';
}
else {
printf "child exited with value %d\n", $? >> 8;
}
6 Einträge, 1 Seite |