diff options
author | Nat Lasseter <nat.lasseter@york.ac.uk> | 2021-01-07 13:55:59 +0000 |
---|---|---|
committer | Nat Lasseter <nat.lasseter@york.ac.uk> | 2021-01-07 13:55:59 +0000 |
commit | 5ddf1c16dc7962790821bd61f0eb280d9929604b (patch) | |
tree | f9e8c2fea7e987faea5fe31b532bf99b92a2d84b /slurm_job_states.rb | |
parent | c218b3ab2cecab7efafdb8f9f3f18cb725dc9634 (diff) |
specify absolute path to slurm tools in raiders
Diffstat (limited to 'slurm_job_states.rb')
-rw-r--r-- | slurm_job_states.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slurm_job_states.rb b/slurm_job_states.rb index 2881d68..232df3c 100644 --- a/slurm_job_states.rb +++ b/slurm_job_states.rb @@ -8,7 +8,7 @@ class SlurmJobStates start_time = (Time.now - @interval).strftime("%H:%M:%S") # Get raw data from sacct and read jobs into an array - raw = `sacct -a -P -o State,Partition -S #{start_time}`.lines + raw = `/usr/bin/sacct -a -P -o State,Partition -S #{start_time}`.lines # remove any whitespace from the ends of each string raw = raw.map(&:strip) # drop the header line |