3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 03:33:06 +01: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;
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 = "";
open(FILE, '.output');
while(<FILE>) {