0

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 1

0

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

2
  • 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.
    – user121392
    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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .