Ment to send this to the list

---------- Forwarded message ----------
From: William Hay <[email protected]>
Date: 17 June 2013 08:49
Subject: Re: [gridengine users] Small environment oddity for jobs with both
-V/-v options set
To: Nicolas Joly <[email protected]>





On 14 June 2013 10:40, Nicolas Joly <[email protected]> wrote:

> On Thu, Jun 13, 2013 at 08:21:45PM +0000, Ed Lauzier wrote:
> > Or keeping it really simple...
> >
> > unset DUMMY
> > qrsh -V -v DUMMY=dummy 'echo $DUMMY'
>
> That's exactly the case i want to avoid ... altering the user
> submission env.
>
> How about:
export DUMMY=foo
export DUMMY2=baz
DUMMY=bar DUMMY2=quux qrsh -V /bin/env

No doubt somewhat shell dependent(works with bash as my shell) but the
assignments on the qrsh line should take precedence over the general
environment ones for the qrsh command only.

William


> > A way around this is for example:
> >
> > export DUMMY=nonsense
> > qrsh -V -v mytestvar=dummy -b y 'export testvar=$mytestvar;echo $testvar'
>
> Unfortunately, this is can be a solution for a single variable, but we
> do maintain about 1500 tools for our users and some of them need to
> handle up to 5 vars so it will be a real nightmare :(
>
> Thanks anyway.
>
> --
> Nicolas Joly
>
> Biology IT Center
> Institut Pasteur, Paris.
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users
>
>
>
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to