Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在Slurmsbatch中,使用命令行工具提交的作业会返回其作业 ID。如何使用Perl API获取作业 ID ?
sbatch
如果您提交这样的工作:
$resp = $slurm->submit_batch_job($job_desc_msg);
尝试寻找$resp一个名为的新字段job_id
$resp
job_id
$jobid = $resp->{job_id} if $resp;
如果命令成功,那将被设置。