PBSPro qsub output error file directed to path with jobid in name

房东的猫 提交于 2019-12-07 19:15:29

The solution I came up with was following the qsub command with a qalter command like so:

jobid=$(qsub -N ${subjobname_short} submission_script.sc)
qalter -o ${path}.o{$jobid} -e ${path}.e${jobid} ${jobid}

This way, PBS Pro does not need to resolve the variables, as it failed to do so in our install (this may be a configuration issue)

If you want the ${PBS_JOBID} to be resolved by PBSPro, you need to escape it on the command line:

qsub -o \$PBS_JOBID 

Otherwise, bash will attempt to resolve $PBS_JOBID before it gets to the qsub command. I don't know if $subjobname_short and $path are actual environment variables or ones you want pbs to resolve, but if you want pbs to resolve them you'll also need to escape these ones or place it inside the job script.

NOTE: I also notice that your -o argument says {$PBS_JOBID} and I'm pretty sure you want ${PBS_JOBID}. I don't know if that's a typo in the question or what you tried to pass to qsub.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!