Thank you Reuti.

On 10/29/2013 11:47 AM, Reuti wrote:

I came up with this:

#!/bin/sh

case "$SGE_STARTER_SHELL_START_MODE" in

     unix_behavior)
         exec "$@" ;;

#
# Although  posix_compliant and script_from_stdin are the same, the behavior is 
different:
# posix_compliant => $1 is the name of the script
# script_from_stdin => $1 is -s (option to the shell to read from stdin)
#

     posix_compliant | script_from_stdin)
         if [ "$SGE_STARTER_USE_LOGIN_SHELL" = "true" ]; then
             exec -l -a "${SGE_STARTER_SHELL_PATH##*/}" "$SGE_STARTER_SHELL_PATH" 
"${@}"
         else
             exec -a "${SGE_STARTER_SHELL_PATH##*/}" "$SGE_STARTER_SHELL_PATH" 
"${@}"
         fi ;;

esac



-- Reuti



_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to