Changeset 1357


Ignore:
Timestamp:
07/23/09 07:29:56 (16 years ago)
Author:
seroussi
Message:

mac cronfile

Location:
issm/trunk/cron
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/nightlyrun.sh

    r1230 r1357  
    88echo $suffix;
    99}
     10
     11#Recover package for which we run nightly.
     12package=$1;
     13
     14echo $package
     15exit
    1016
    1117#create ISSM variables
     
    5763#5: change issm.rc
    5864cd etc
    59 cat cluster.rc | sed -e "s/cluster_codepath=\/u\/astrid1\/larour\/issm\/trunk\/bin/cluster_codepath=\/u\/wilkes-r1b\/morlighe\/svn\/issm\/trunk\/cron\/trunk\/bin/g" | sed -e "s/cluster_executionpath=\/u\/wilkes-r1b\/larour\/Testing\/Execution/cluster_executionpath=\/u\/wilkes-r1b\/morlighe\/ExecutionNightlyRun/g"> cluster.bak
     65cat cluster.rc | sed -e "s/cluster_codepath=\/u\/wilkes-r1b\/larour\/Ice\/ice1.proto\/bin/cluster_codepath=\/u\/wilkes-r1b\/morlighe\/svn\/issm\/trunk\/cron\/trunk\/bin/g" | sed -e "s/cluster_executionpath=\/home\/larour\/Testing\/Execution/cluster_executionpath=\/u\/wilkes-r1b\/morlighe\/Execution/g"> cluster.bak
    6066mv cluster.bak cluster.rc
    6167cd ..
    6268
    6369#Launch matlab and the nightly run script
     70if [[ package == "" ]]
     71        matlab -nojvm -nosplash  > ./nightlylong.log << EOF
     72startup
     73nightlyrun;
     74EOF
     75else
    6476matlab -nojvm -nosplash  > ./nightlylong.log << EOF
    6577startup
    66 warning off all
    67 nightlyrun;
     78nightlyrun($1);
    6879EOF
     80fi
    6981
    7082#removed unused lines to deal with a smaller file
    7183cat nightlylong.log | egrep 'difference: |NIGHTLYRUNTERMINATEDCORRECTLY' > nightly.log
    72 #rm nightlylong.log
     84rm nightlylong.log
    7385
    7486#Build html report
Note: See TracChangeset for help on using the changeset viewer.