Log occurs only after job finished

#!/bin/bash
#PBS -N 20221027203106.ncl
#PBS -l nodes=1:ppn=1
#PBS -j oe
#PBS -o 20221027203106.log
##PBS -e %J.err

For example, the script [20221027203106.ncl] has many print lines, however when the job is running, its log [20221027203106.log] cannot be seen, until the job finished. then all print are shown in [20221027203106.log].
Is it normal for PBS? if not how to set it to show log immediately.
(I got familiar with SLURM, in which log occurs when job are running.)

Please follow this discussion:

1 Like

That’s it. Many thanks.