Here is my pbs file:
#!/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
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?