I'm using Torque and I want my PBS log+error output to be appended to previous log/error file instead of overwriting it.
1 Answer
You need to do this as a separate step in the job script.
cd $PBS_O_WORKDIR
mkdir $PBS_JOBID
mycode 1> $PBS_JOBID/myoutput.out 2> $PBS_JOBID/myerror.err
cat $PBS_JOBID/myoutput.out >> previouslogoutput.out
-
Hi. Sorry but my Torque setup is actually appending by default instead of overwriting but I don't know what the previous sysadmin did. I was wondering what was the step so that I could reverse it. Sep 15, 2017 at 9:15
-
check prologue/eplilogue scripts to see if there is anything there. How does it append? When you run a new job where does the output file go now? Sep 15, 2017 at 9:50