3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

TenDRA: Show exit code return value from main()

This commit is contained in:
Pragmatic Software 2015-01-24 11:53:23 -08:00
parent 4b9e177aec
commit a53b5473ae

View File

@ -20,6 +20,8 @@ sub postprocess {
$input_quoted =~ s/\\"/"'\\"'"/g; $input_quoted =~ s/\\"/"'\\"'"/g;
my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 1; /home/compiler/prog <<< echo $input_quoted > .output\""); my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 1; /home/compiler/prog <<< echo $input_quoted > .output\"");
$self->{error} = $retval;
$result = ""; $result = "";
open(FILE, '.output'); open(FILE, '.output');
while(<FILE>) { while(<FILE>) {