Quantcast
Channel: Parse SLURM job wall time to bash variables - Stack Overflow
Browsing latest articles
Browse All 3 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 latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>