Commit 137109e1 authored by Leo Gordon's avatar Leo Gordon
Browse files

the worker_pid may contain index part and should be enquoted

parent 2c14887e
......@@ -80,7 +80,7 @@ sub kill_worker {
sub find_out_cause {
my ($self, $worker_pid) = @_;
my $diagnostic_output = `bacct -l $worker_pid`;
my $diagnostic_output = `bacct -l '$worker_pid'`;
if($diagnostic_output=~/TERM_MEMLIMIT: job killed/i) {
return 'MEMLIMIT';
} elsif($diagnostic_output=~/TERM_RUNLIMIT: job killed/i) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment