mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 20:09:43 +01:00
compiler_vm: remove bash -c from exec
This commit is contained in:
parent
82efd8536f
commit
ec7f712141
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user