[GE users] Strange behaviour of environment variables

Terry Lalonde tlalonde at potentiasemi.com
Fri Sep 24 19:09:24 BST 2004

    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

-----Original Message-----
From: Terry Lalonde 
Sent: Wednesday, September 22, 2004 5:09 PM
To: 'users at gridengine.sunsource.net'
Subject: strange behaviour of environment variables 

Running:  sge 6.0u1

  We are observing that some "weirdness" with environment variables.

please see the following description:

   User home directories are NFS shared across the grid
   We have a .cshrc file which defines an environment variable
   if it is not already defined.  for example:

   if (! $?HSPICE) then   
      setenv HSPICE 2004.09

   on the local host:
     echo $HSPICE returns  2004.9   as expected
   an interactive "qrsh"
     echo $HSPICE returns  2004.9   as expected
   issuing the command: 
     qrsh 'echo $SPICE'  returns  2004.03-SP1  <-which is an old value
   issuing the command:
     qrsh -V 'echo $SPICE'  returns 2004.9   as expected

   I had no success in determining where this historical value came from.
   It is a very specific value and historically the previous default value.
   There are no .??* files defining this (believe me).

   I restarted execd on ONE of the hosts and then restarted the
   qmaster processes on the qmaster. 

     qrsh 'echo $SPICE'  

    returns 2004.9      when it gets executed on the restarted host
    returns 2004.03-SP1 when it gets executed on any other host

    wtf?  :-)

    any ideas


To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net

More information about the gridengine-users mailing list