在我的代码中,我想使用 qsub 输出信息,例如作业 ID、节点名称等,所以我考虑在分配节点时将 qsub 输出重定向到某个文件中,以便以后使用我的代码。
例如,当我使用请求交互式节点时
[abc@mike1 ~]$ qsub -V -I -l walltime=01:00:00,nodes=1:ppn=16
我得到这些输出
qsub: waiting for job 48536.mike3 to start
qsub: job 48536.mike3 ready
--------------------------------------
Running PBS prologue script
--------------------------------------
User and Job Data:
--------------------------------------
Job ID: 48536.mike3
Username: abc
Group: Users
Date: 01-Sep-2013 19:14
Node: mike099 (4657)
--------------------------------------
PBS has allocated the following nodes:
mike099
A total of 16 processors on 1 nodes allocated
---------------------------------------------
Check nodes and clean them of stray processes
---------------------------------------------
Checking node mike099 19:14:52
Done clearing all the allocated nodes
------------------------------------------------------
Concluding PBS prologue script - 01-Sep-2013 19:14:52
------------------------------------------------------
[abc@mike099 ~]$
我可以在分配节点时将这些信息重定向到文本文件中吗?
我尝试了类似的东西
[abc@mike1 ~]$ qsub -V -I -l walltime=01:00:00,nodes=1:ppn=16 >> 1.txt
它给了我一个错误
qsub: standard input and output must be a terminal for
interactive job submission