[GE users] How to define environment variables on complex request ?

reuti reuti at staff.uni-marburg.de
Mon Apr 19 10:48:15 BST 2010


Hi,

Am 19.04.2010 um 11:36 schrieb pmuller:

> I would like to export some environment based on complexes requests.
> How can I do it ?
> 
> For example :
> When an user submit a job using qsub -l oracle, I'd like to automatically define the ORACLE_HOME variable.

a JSV can add settings to the environment:

  l_hard=`jsv_get_param l_hard`
   if [ "$l_hard" != "" ]; then
      has_h_oracle=`jsv_sub_is_param l_hard oracle`
      if [ "$has_h_oracle" = "true" ]; then
          jsv_add_env ORACLE_HOME /somewhere/on/the/disk
          jsv_log_info "ORACLE path added"
      fi
   fi

-- Reuti

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=253990

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list