Hi Nicolas,

I think that this is not a bug, but just a bit if a design oversight....

A way around this is for example:

export DUMMY=nonsense
qrsh -V -v mytestvar=dummy -b y 'export testvar=$mytestvar;echo $testvar'

Hope this helps....

-Ed


-----Original Message-----
From: Nicolas Joly [mailto:[email protected]]
Sent: Thursday, June 13, 2013 03:32 PM
To: [email protected]
Subject: [gridengine users] Small environment oddity for jobs with both -V/-v 
options set

Hi,We recently hit an annoying problem with environment when submittedjobs have 
both -V and -v option ... 
When -V is provided and a variabledoes not exists, it can be correctly set with 
-v option, 
but if it'salready there it can't be modified. 
Same behaviour with OGS/GE2011.11p1 and SGE 8.1.4pre.
njoly@lanfeust [~]> echo ${DUMMY}
njoly@lanfeust [~]> qrsh -V 'echo ${DUMMY}'
njoly@lanfeust [~]> qrsh -v DUMMY=dummy 'echo ${DUMMY}'
dummy
njoly@lanfeust [~]> qrsh -V -v DUMMY=dummy 'echo ${DUMMY}'
dummy
njoly@lanfeust [~]> export DUMMY=nonsense
njoly@lanfeust [~]> echo ${DUMMY}
nonsense
njoly@lanfeust [~]> qrsh -V 'echo ${DUMMY}'
nonsense
njoly@lanfeust [~]> qrsh -v DUMMY=dummy 'echo ${DUMMY}'
dummy
njoly@lanfeust [~]> qrsh -V -v DUMMY=dummy 'echo ${DUMMY}'
nonsense

All results seems fine, except for the last one where i would haveexpected 
"dummy" 
instead of "nonsense". 
Such a behaviour preventssetting alternate environment values on a per job 
basis 
withoutaltering the submission/current one first ... 
Comments ?
Thanks.
-- Nicolas Joly
Biology IT CenterInstitut Pasteur, 
Paris.
_______________________________________________users mailing 
[email protected]https://gridengine.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to