Changeset 1110 for palm/trunk/SCRIPTS/nc2vdf
- Timestamp:
- Mar 7, 2013 11:42:45 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/nc2vdf
r1068 r1110 19 19 # Current revisions: 20 20 # ----------------- 21 # 21 # adapted for use on desktop machines 22 22 23 # Former revisions: 23 24 # ----------------- … … 30 31 # ------------ 31 32 # Starting script for nc2vdf. The script does only work on hicegate2, bicegate2, 32 # uv as well as on the server at imuk.33 # uv, on the imuk server. It can be adapted for use on any desktop machine. 33 34 #------------------------------------------------------------------------------# 34 35 … … 38 39 sys="unknown" 39 40 41 line="" 42 more $1 | grep "check_workstation" > tmp_mrun 43 while read line 44 do 45 check_workstation=`echo $line | cut -d"=" -s -f2` 46 done < tmp_mrun 47 48 line="" 49 more $1 | grep "WS_init" > tmp_mrun 50 while read line 51 do 52 WS_init=`echo $line | cut -d"=" -s -f2` 53 done < tmp_mrun 54 55 line="" 56 more $1 | grep "init_script" > tmp_mrun 57 while read line 58 do 59 vapor_init_path=`echo $line | cut -d"=" -s -f2` 60 done < tmp_mrun 61 62 rm tmp_mrun 40 63 41 64 echo "*** checking hostname..." … … 61 84 check_hlrn=true 62 85 fi 63 # if [ $(expr "$HOSTNAME" : "") -eq 1 ] ### insert $HOSTNAME of your workstation here if you are not running vapor on one of the systems above 64 # then 65 # check_workstation=true 66 # fi 86 87 67 88 68 89 … … 71 92 then 72 93 sys="IMUK" 73 . /muksoft/packages/vapor/2. 1.0/bin/vapor-setup.sh94 . /muksoft/packages/vapor/2.2.0/bin/vapor-setup.sh 74 95 fi 75 96 … … 81 102 module load ncl 82 103 fi 83 84 if [ $check_workstation == " true" ]104 105 if [ $check_workstation == "True" ] 85 106 then 86 107 sys="workstation" 108 if [ $WS_init == "True" ] 109 then 110 . $vapor_init_path 111 fi 112 if [ $WS_load == "True" ] 113 then 114 $WS_load_command 115 fi 87 116 fi 88 117
Note: See TracChangeset
for help on using the changeset viewer.