qsub集群上的作业后检查实时输出 [英] Check real time output after qsub a job on cluster
问题描述
这是我的pbs文件:
#!/bin/bash
#PBS -N myJob
#PBS -j oe
#PBS -k o
#PBS -V
#PBS -l nodes=hpg6-15:ppn=12
cd ${PBS_O_WORKDIR}
./mycommand
在qsub文档页面上,好像我把这行
PBS -k o
,我应该能够在主目录中名为myJob.oJOBID的文件中检查实时输出.但是,当我在运行时通过tail -f
或cat
或more
检查输出时,该文件中没有显示任何内容.只有当我终止工作时,文件才会显示输出.我应该检查一下以使流实时刷新到输出文件吗?
On qsub documentation page, it seems like if I put the line
PBS -k o
, I should be able to check the real time output in a file named myJob.oJOBID in my home dir. However when I check the output by tail -f
or cat
or more
in runtime, it shows nothing in the file. Only when I terminated the job, then the file would show the output. Is there anything I should check to make the stream flush to the output file in real time?
推荐答案
默认情况下,文件在节点上创建,并在作业完成时复制到您的主目录中.群集管理员可以通过将"$ spool_as_final_name true"添加到每个节点上mom_priv目录中的配置文件中来更改此行为.
By default, the files are created on the nodes and copied to your home directory when the job completes. The cluster admin can change this behavior by adding "$spool_as_final_name true" to the config file in the mom_priv directory on each node.
这篇关于qsub集群上的作业后检查实时输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!