compiler_vm: remove bash -c from exec

This commit is contained in:
Pragmatic Software 2018-03-12 22:35:57 -07:00
parent 82efd8536f
commit ec7f712141
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ sub postprocess {
}
print "Executing gdb\n";
my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 5; compiler_watchdog.pl $self->{arguments} > .output\"");
my ($retval, $result) = $self->execute(60, "date -s \@$self->{date}; ulimit -t 5; compiler_watchdog.pl $self->{arguments} > .output");
$result = "";
open(FILE, '.output');

View File

@ -32,7 +32,7 @@ sub postprocess {
print "Executing java\n";
my $input_quoted = quotemeta $self->{input};
$input_quoted =~ s/\\"/"'\\"'"/g;
my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 5; echo $input_quoted | java prog $self->{arguments} > .output\"");
my ($retval, $result) = $self->execute(60, "date -s \@$self->{date}; ulimit -t 5; echo $input_quoted | java prog $self->{arguments} > .output");
$result = "";
open(FILE, '.output');

View File

@ -21,7 +21,7 @@ sub postprocess {
$self->{output} = "[$self->{output}]\n";
}
my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 5; cat .input | /home/compiler/prog > .output\"");
my ($retval, $result) = $self->execute(60, "date -s \@$self->{date}; ulimit -t 5; cat .input | /home/compiler/prog > .output");
$self->{error} = $retval;