Ignore:
Timestamp:
Mar 7, 2013 11:42:45 AM (9 years ago)
Author:
maronga
Message:

updates in nc2vdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/nc2vdf

    r1068 r1110  
    1919# Current revisions:
    2020# -----------------
    21 #
     21# adapted for use on desktop machines
     22
    2223# Former revisions:
    2324# -----------------
     
    3031# ------------
    3132# 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.
    3334#------------------------------------------------------------------------------#
    3435
     
    3839    sys="unknown"
    3940
     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
    4063
    4164    echo "*** checking hostname..."
     
    6184       check_hlrn=true
    6285    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
    6788
    6889
     
    7192    then
    7293       sys="IMUK"
    73        . /muksoft/packages/vapor/2.1.0/bin/vapor-setup.sh
     94       . /muksoft/packages/vapor/2.2.0/bin/vapor-setup.sh
    7495    fi
    7596
     
    81102       module load ncl
    82103    fi
    83    
    84     if [ $check_workstation == "true" ]
     104
     105    if [ $check_workstation == "True" ]
    85106    then
    86107       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
    87116    fi
    88117
Note: See TracChangeset for help on using the changeset viewer.