[torqueusers] problem with qsub -v

Garrick Staples garrick at clusterresources.com
Tue Apr 24 16:15:47 MDT 2007


On Mon, Apr 23, 2007 at 01:10:32PM -0700, Cunningham, Dave alleged:
> I'm getting some odd behavior from qsub.  I'm trying to pass information
> in to my job script from the qsub command line through the environment,
> with something like
> 
>             qsub -v foo=bar  my_job
> 
>  Works fine like that, but I need to have a space tin the value string
> of the environment variable, eg, 
> 
>             qsub -v foo="bar bat" my_job
> 
>  That, and any reasonable way that I can think of escaping the quotes or
> space fails and sets $foo to some really bizarre combinations of other
> environment variables.  Can anyone explain what is going on or how I
> should be doing this ? I'm running qsub version 2.1.7.  

Note that we tracked this down off-list to Moab.



More information about the torqueusers mailing list