Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a line in the script I submit to torque that looks like this:

#PBS -o /path/to/output/file/directory/file_name_with_some_underscores.out

But when I look for this output file, it's called something like this:


Where 36091 is the job ID number. I have multiple jobs running simultaneously with the same output file, but I've done that before and this has never happened previously.

Why is Torque doing this?

share|improve this question
@woodchips: There was a meta post discussing this a while back. Questions about tools are considered on-topic. – Dan Jan 4 '13 at 17:49
When you say that you've done "this" before, was it on the exact same machine? – Paul Jan 7 '13 at 15:53
@Paul: Yes. Everything that struck me as at all relevant was exactly the same, though I'm unsure if TORQUE was updated. – Dan Jan 7 '13 at 20:26

do you happen to have any non-comment lines in your batch script before the #PBS -o line? TORQUE will ignore any #PBS lines that occur after the first executable statement in the script. The qsub command will scan your batch script for #PBS lines until it encounters a line that is not a comment or whitespace.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.