-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_grid
More file actions
37 lines (32 loc) · 789 Bytes
/
setup_grid
File metadata and controls
37 lines (32 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# setup crab
#
if ($#argv > 0) then
set vers=$1
else
set vers=CRAB
# set SLVersion=`cat /etc/redhat-release | grep -c Boron`
# if ($SLVersion == 1) then
# set vers=CRAB_2_6_6
# endif
endif
if ( ! $?CMS_PATH ) then
echo "UAF environment not set"
exit 1
endif
set SL6=`cat /etc/redhat-release | grep -c Ramsey`
set SL7=`cat /etc/redhat-release | grep -c Nitrogen`
if ( ! $?GLITE_LOCATION ) then
if ( $SL6 == 0 && $SL7 == 0 ) then
echo
echo "Setting up gLite_SL5 environment"
source /uscmst1/prod/grid/gLite_SL5.csh
endif
endif
echo
echo "*************************"
echo " running voms-proxy-init -voms cms -valid 168:0"
echo "*************************"
echo
voms-proxy-init -voms cms -valid 168:0
echo "Check proxy with: voms-proxy-info"