Quantcast
Channel: Parse SLURM job wall time to bash variables - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Parse 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 Article

Answer 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
Browsing all 3 articles
Browse latest View live




Latest Images