3
##########################################################################
5
# The Contents of this file are made available subject to the terms of
6
# the Sun Industry Standards Source License Version 1.2
8
# Sun Microsystems Inc., March, 2001
11
# Sun Industry Standards Source License Version 1.2
12
# =================================================
13
# The contents of this file are subject to the Sun Industry Standards
14
# Source License Version 1.2 (the "License"); You may not use this file
15
# except in compliance with the License. You may obtain a copy of the
16
# License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
18
# Software provided under this License is provided on an "AS IS" basis,
19
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
20
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
21
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
22
# See the License for the specific provisions governing your rights and
23
# obligations concerning the Software.
25
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
27
# Copyright: 2001 by Sun Microsystems, Inc.
29
# All Rights Reserved.
31
##########################################################################
38
echo "\$SGE_ROOT environment variable not set" >> error
42
SGE_CELL=${SGE_CELL:-default}
44
arch=`$SGE_ROOT/util/arch`
45
eval `grep "^USER=" environment`
46
eval `grep "^JOB_ID=" environment`
47
eval `grep "^KRB5CCNAME=" environment`
52
# Remove KRB5CCNAME from the environment file and
53
# change ownership of environment file, so we can set
54
# the new KRB5CCNAME returned by k5dcelogin below.
56
grep -v "^KRB5CCNAME=" <environment >environment.new
57
mv environment.new environment
58
chown $USER environment
60
exec $SGE_ROOT/utilbin/$arch/k5dcelogin /bin/sh -c "echo KRB5CCNAME=\$KRB5CCNAME>>environment; exec $SGE_ROOT/bin/$arch/sge_shepherd -bg; echo could not exec shepherd >> error; exit 7" 2>> error
62
echo "could not exec k5dcelogin" >> error