[GE users] submitting binaries while disallowing interactive logins

Reuti reuti at staff.uni-marburg.de
Tue Jul 20 00:05:05 BST 2004


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Hi,

maybe there is an easier way. But my first idea to prohibit the login without 
SGE on the node is to include something like (on Linux):

if [ $UID -ge 500 ] ; then
    if [ `ps alx | awk -f /etc/getmode.awk` != "SGE" ] ; then
        echo "*** Please login using qrsh ***"
        exit
    fi
fi

in /etc/profile.local and the required awk script /etc/getmode.awk would be:

/^[0-9][0-9][0-9] */    { parent[$3] = $4
                          process[$3] = $13 }

END                     { start_method = 
process[parent[parent[parent[parent[PROCINFO["ppid"]]]]]]
                          if ( start_method ~ "shepherd" )
                              { printf "SGE" }
                          else
                              { printf "unknown" }
                        }

The awk script will test, whether it was started by any shepherd or anything 
else.

Cheers - Reuti

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