Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 582 Bytes

other_commands.md

File metadata and controls

13 lines (9 loc) · 582 Bytes

Slurm commands

Command to see state and elapsed time of all the jobs ran by the user in the last few days.

sacct -u $USER --starttime=now-7days --format=JobID,State,Elapsed
'''



Command to see the working directory of all my simulations running

squeue -o "%.18i %.9P %.20j %.8u %.2t %.10M %.6D %R" -u s4657117 --noheader | while read job_id partition job_name user state memory time nodes; do echo -e "$job_id\t$partition\t$job_name\t$user\t$state\t$memory\t$time\t$nodes\t$(scontrol show job $job_id | awk -F= '/Command=/{print $2}' | xargs dirname)"; done