PBSPro qsub 输出错误文件定向到名称为 jobid 的路径 [英] PBSPro qsub output error file directed to path with jobid in name

查看:64
本文介绍了PBSPro qsub 输出错误文件定向到名称为 jobid 的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PBSPro 并尝试使用 qsub 命令行提交作业,但似乎无法按照我想要的方式命名输出和错误文件.目前使用:

I'm using PBSPro and am trying to use qsub command line to submit a job but can't seem to get the output and error files to be named how I want them. Currently using:

  qsub -N ${subjobname_short} \
       -o ${path}.o{$PBS_JOBID} -e ${path}.e${PBS_JOBID}
       ... submission_script.sc

Where $path=fulljobname      (i.e. more than 15 characters)

我知道 $PBS_JOBID 在提交作业后才会设置...

I'm aware that $PBS_JOBID won't be set until after the job is submitted...

有什么想法吗?

谢谢

推荐答案

我想出的解决方案是在 qsub 命令之后使用 qalter 命令,如下所示:

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}

这样,PBS Pro 不需要解析变量,因为它在我们的安装中没有这样做(这可能是配置问题)

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)

这篇关于PBSPro qsub 输出错误文件定向到名称为 jobid 的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆