[GE users] environment variables in qrsh interactive shell

Reuti reuti at staff.uni-marburg.de
Wed May 23 11:48:47 BST 2007


Am 23.05.2007 um 11:27 schrieb Chris Rudge:

> I'm having trouble with SGE specific environment variables not  
> being set
> in interactive qrsh sessions. My assumption is that a qrsh login  
> should

No.

> have essentially the same environment set as for any other SGE
> controlled shell.

You get a plain new shell with a plain qrsh. But you can try:

qrsh bash -li

-- Reuti

> Not having these set causes problems with TMP directory settings and
> also makes it more difficult to test MPI jobs interactively as
> sge_mpirun doesn't work as it machine files etc aren't set up  
> properly.
>
> For example...
>
> With an interactive login:
>
> tag/cru> qrsh
> Last login: Wed May 23 10:17:19 from spectrum
> Directory: /home/tag/cru
> Wed May 23 10:18:44 BST 2007
> comp02 tag/cru> echo $TMP
> TMP: Undefined variable.
> comp02 tag/cru>  echo $SGE_JOB_SPOOL_DIR
> SGE_JOB_SPOOL_DIR: Undefined variable.
> comp02 tag/cru>
>
>
> but non-interactive:
>
> tag/cru> qrsh 'echo $TMP'
> /tmp/856481.1.default.q
> tag/cru> qrsh 'echo $SGE_JOB_SPOOL_DIR'
> /usr/local/sge6.0/default/spool/comp02/active_jobs/856483.1
> tag/cru>
>
>
> This is with SGE6.0 and I've encountered the same problem across  
> several
> different build versions.
>
> Regards,
> Chris.
>
>
>
> -- 
> Dr Chris Rudge
> chris.rudge at astro.le.ac.uk
>
> UKAFF Facility Manager & Dept. Research Computing Manager
> Dept of Physics & Astronomy
> University of Leicester
> LE1 7RH
>
> web.  www.ukaff.ac.uk
> Tel.  +44 (0)116 2523331
> Fax.  +44 (0)116 2231283
> Mob.  +44 (0)794 1379420
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net

---------------------------------------------------------------------
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