PBSPro qsub output error file directed to path with jobid in name

Patrick

I'm using PBSPro and am trying to use qsub command line to submit a job but can't seem to get the output and error files to be named how I want them. Currently using:

  qsub -N ${subjobname_short} \
       -o ${path}.o{$PBS_JOBID} -e ${path}.e${PBS_JOBID}
       ... submission_script.sc

Where $path=fulljobname      (i.e. more than 15 characters)

I'm aware that $PBS_JOBID won't be set until after the job is submitted...

Any ideas?

Thanks

vehystrix

The solution I came up with was following the qsub command with a qalter command like so:

jobid=$(qsub -N ${subjobname_short} submission_script.sc)
qalter -o ${path}.o{$jobid} -e ${path}.e${jobid} ${jobid}

This way, PBS Pro does not need to resolve the variables, as it failed to do so in our install (this may be a configuration issue)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

gcc error output not getting directed to file

From Dev

change exe file name and output path

From Dev

String is not being directed to Output file (C++)

From Dev

python script output won't be directed to file

From Dev

How to read in a file and output the file with the same file name into another subfolder using pathlib.Path().glob()

From Dev

gulp-notify - get file name, not whole path, with error

From Dev

OS Error file path and name being changed without user interference

From Dev

gulp-notify - get file name, not whole path, with error

From Dev

Spring Batch FlatFileItemWriter - How to use stepExecution.jobId to generate file name

From Dev

Spring Batch FlatFileItemWriter - How to use stepExecution.jobId to generate file name

From Dev

Path, directory and/or file name

From Dev

Splitting a path to a file name

From Dev

ExifTool output file name

From Dev

Eulerian path, directed graph

From Dev

Desktop path for file output Java

From Dev

GhostScript Path output/input error

From Dev

Error converting file path

From Dev

Android file path error

From Dev

No such file or directory (path error)

From Dev

Xcode file path error

From Dev

Redirect output of my java program under qsub

From Dev

No output from submitted job using qsub?

From Dev

Parse file name and path from full path

From Dev

regex match file name in a path

From Dev

Get file name from path

From Dev

Add a file name to a Path object

From Dev

remove path "/" from file name

From Dev

regex match file name in a path

From Dev

551 Error on output file