On 10/11/2012 02:26 AM, William Hay wrote:
On 10 October 2012 23:12, Orion Poplawski <[email protected]> wrote:

Well, looks like shell_start_mode is deprecated and doesn't do a whole lot
now.  As for handling SGE_STARTER_USE_LOGIN_SHELL, this seems to be the
equivalent:

# Start the job
if [ "$SGE_STARTER_USE_LOGIN_SHELL" == true ]
then
    shellname=$(basename $SGE_STARTER_SHELL_PATH)
    exec -a -${shellname} $SGE_STARTER_SHELL_PATH "$@"
else
    exec $SGE_STARTER_SHELL_PATH "$@"
fi
Slight quirk.  At least in 6.2u3 SGE_STARTER_SHELL_PATH doesn't always
get set when invoked via  qrshd and sometimes parallel code expects
what it passes to qrsh to be interpreted by a shell.  If
SGE_STARTER_SHELL_PATH isn't set invoking /bin/sh -c "$*" or
equivalent should DTRT.

William

Interesting.  I'll go with adding this then before:

# Apparently SGE_STARTER_SHELL_PATH doesn't always get set with qrshd
[ -z "$SGE_STARTER_SHELL_PATH" ] && SGE_STARTER_SHELL_PATH=$SHELL

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

Reply via email to