Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use PBS environment variables inside the PBS directives of my script?

Tags:

qsub

pbs

torque

Something like:

#PBS -t 0-99
#PBS -d "~/$PBS_ARRAYID.output"

What I want to do here is to redefine the working directory of each individual job in the job array, using the job's array id. Is this valid code?

I need to know before I send to the cluster, because I can't run tests there.

like image 300
becko Avatar asked Jan 31 '26 15:01

becko


1 Answers

Yes, you can use any of the environment variables listed here in -d, -o, or -e.

like image 186
dbeer Avatar answered Feb 03 '26 09:02

dbeer