Variable list syntax

I’m trying to run a job and pass three variables to the script, the man page says to use a comma separated list, but when I try this, I just get the usage message returned - what am I missing?
The command I’m trying to run is:
qsub -v JNAME=fred, INAME=a2, WORK_DIR=pwd check.qsub

It’s OK if I just try one variable, but fails once I try two or more.

(I’m running on RHEL 7.4).

I believe you’re not supposed to add spaces, it should look like:

qsub -v JNAME=fred,INAME=a2,WORK_DIR="`pwd`" check.qsub

I’ve added quotes around pwd, just incase there are spaces in the output of the command.

2 Likes

Hi

I was just having the same problems and this post solved it.
The PBS Professional 2021.1 User’s Guide UG-21 clearly shows spaces in all their examples which is incorrect. Thanks Sharon for posting and thanks Vincent for the solution.

Mike