【问题标题】:Save slurm job ID as you submit the job with sbatch使用 sbatch 提交作业时保存 slurm 作业 ID
【发布时间】:2020-09-24 22:47:49
【问题描述】:

有没有办法用 sbatch 提交作业以将作业 id 记录到变量中?

job_id = sbatch --account my_account some_script.sh

echo $job_id

17210254

【问题讨论】:

标签: shell slurm


【解决方案1】:

这可以通过--parsable来完成

job_id=$(sbatch --parsable test.sh)
echo $job_id
17211434

【讨论】:

    猜你喜欢
    • 2013-11-26
    • 1970-01-01
    • 2018-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-01
    • 1970-01-01
    相关资源
    最近更新 更多