↧
Answer by Andrew Vickers for Parse SLURM job wall time to bash variables
From reading the man page of the squeue command, it seems that you can simplify the problem by having squeue only output the information you need: squeue -h -j ${jobid} -O timeused Then your task is...
View ArticleParse SLURM job wall time to bash variables
With SLURM, I run the command squeue -u enter_username and I get an table output with the following heading JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) I'm trying to capture the duration...
View ArticleAnswer by ThatsRightJack for Parse SLURM job wall time to bash variables
The solution presented by @Andrew Vickers above works as expected. However, I took this one step further to enforce a fixed 2 digit formatindex=0 while [ ${index} -lt 4 ]; do if [ ${#parts[${index}]}...
View Article