Am 10.10.2012 um 17:27 schrieb Orion Poplawski: > On 10/10/2012 03:23 AM, Reuti wrote: >> Am 10.10.2012 um 01:02 schrieb Orion Poplawski: >> >>> That looks good. Any good example starter method scripts that handle >>> the SGE_STARTER_SHELL_START_MODE and SGE_STARTER_USE_LOGIN_SHELLvariables >>> appropriately when running the shell? >> >> What do you mean by: "...scripts that handle...variables appropriately..."? >> These are variables you defined - I can't spot them in the default set. > > e.g.: > > SGE_STARTER_USE_LOGIN_SHELL=true > SGE_STARTER_SHELL_START_MODE=posix_compliant > > From the man page: > > SGE_STARTER_SHELL_START_MODE > The configured shell_start_mode > > SGE_STARTER_USE_LOGIN_SHELL > Set to "true" if the shell is supposed to be used as a login shell (see > login_shells in sge_conf(5)) > > Shouldn't be too hard, but as you've probably figured out by now, I'm lazy > and like to work from examples :)
Ah, it's in the man page of the queue. But if they are already there: why do you want to set them. I.e. what did you mean by "variables appropriately when running the shell" in the original question? > >> You can also add entries to $SGE_JOB_SPOOL_DIR/environment in the prolog, >> which will be used during the job then. > > I don't think you can - I think the prolog runs as the job user and the > environment file is only writable by the sgeadmin user. Correct: but you can prefix the prolog by the sgeadmin user name in the queue definition to execute it under his account, then you can change it. -- Reuti > > > > -- > Orion Poplawski > Technical Manager 303-415-9701 x222 > NWRA, Boulder Office FAX: 303-415-9702 > 3380 Mitchell Lane [email protected] > Boulder, CO 80301 http://www.nwra.com _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
