2018-10-31T11:20:31 bluelightBin der neue, komm jetzt öfters ;-)
2018-10-31T11:20:31 bluelightBsp: system("$WORKDIR$PROGRAM_FILE $last_nr")
2018-10-31T11:20:31 bluelightAuch wenn ich die Skripte lokal auf einem anderen Rechner laufen lasse, funktioniert es.
system("a:/bs/path/to/perl.exe", "$WORKDIR$PROGRAM_FILE", $last_nr);
2018-11-02T09:25:26 bluelight@rosti -> es werden unterschiedliche Perl-Skripte aufgerufen.
2018-11-02T09:25:26 bluelight@rosti -> es werden unterschiedliche Perl-Skripte aufgerufen.
1 2 3 4 5 6 7 8 9 10 11 12
#!perl use strict; use warnings; use 5.010; my $vonNr = shift @ARGV; my $bisNr = shift @ARGV; say "Bin in $0"; say "von: '$vonNr' bis: '$bisNr'"; system('C:\strawberry\perl\bin\perl.exe', 't:\ZETT\b.pl', $vonNr, $bisNr);
1 2 3 4 5 6 7 8 9
#!perl use strict; use warnings; use 5.010; say "\n\nBin in $0"; say "\@ARGV: '@ARGV'"
1
2
3
4
5
6
7
8
9
10
11
12
13
my $ret = system(..., ..., ..., ...);
if ($ret != 0) {
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;
}
}