Changeset 42
- Timestamp:
- 04/24/09 14:41:27 (16 years ago)
- Location:
- issm/trunk/cron
- Files:
-
- 5 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/README
r1 r42 7 7 For example, if you add: 8 8 9 5 5 * * * cd $I CEHOME/Cron && ./ice.sh9 5 5 * * * cd $ISSM_DIR/cron && ./nightlyrun.sh 10 10 11 11 This will run all the scripts in the Cron directory, every day, at 5:05 am. … … 13 13 14 14 15 If users want to add their own scripts, just add the script to the Cron directory and16 add an entry in the i ce.sh for this script.15 If users want to add their own scripts, just add the script to the cron directory and 16 add an entry in the issm.sh for this script. -
issm/trunk/cron/linux_cronfile
r1 r42 1 #05 0 * * * cd $HOME/Ice/ice1/cron/ && ./ice.sh 2 */5 * * * * cd $HOME/TestingForeign/ && source /u/wilkes-r1b/larour/Ice/ice1.proto/cron/testingforeign.sh 3 */5 * * * * cd $HOME/TestingForeign/ && source /u/wilkes-r1b/larour/Ice/ice1.proto/cron/killingforeign.sh 1 #05 0 * * * cd $HOME/Ice/issm/trunk/cron/ && ./nightlyrun.sh -
issm/trunk/cron/nightlyrun.sh
r1 r42 9 9 } 10 10 11 export ISSM_DIR="/home/seroussi/Ice/ice1/cron/ice1" 12 13 ICE_RELEASE="ice1"; 14 I CE_REPOSITORY="/home/larour/Ice_Repository";11 #create ISSM variables 12 OLDISSM_DIR=$ISSM_DIR; 13 export ISSM_DIR="/home/morlighe/Ice/issm/trunk/cron/issm/trunk" 14 ISSM_RELEASE="issm"; 15 15 16 16 #Figure out today's date … … 19 19 20 20 #Erase code 21 rm -rf $I CE_RELEASE21 rm -rf $ISSM_RELEASE 22 22 23 #Fetch cvscode24 cvs -d $ICE_REPOSITORY co -P $ICE_RELEASE 23 #Fetch svn code 24 svn checkout file:///u/wilkes-r1b/larour/Repository/issm 25 25 26 26 source $ISSM_DIR/etc/environment.sh 27 27 28 #Go to the ice directory 29 cd $ICE_RELEASE 30 ICEDIR=`pwd`; 28 #Go to the issm directory 29 cd $ISSM_DIR 31 30 32 31 #install ISSM 33 cd scripts 34 sh quickinstall.sh 32 33 #1: install some packages 34 cd externalpackages 35 cd mpich2 36 sh install.sh 37 cd ../petsc 38 sh install.sh 39 cd ../metis 40 sh install.sh 41 cd ../triangle 42 sh install.sh 43 cd $ISSM_DIR 44 45 #2: install automake and autoconf 46 cd devpackages 47 make 35 48 cd .. 49 50 #3: generate MakeFiles 51 ./reconfigure.sh 52 ./configure.sh 53 54 #4: compile ISSM 55 make 56 make install 36 57 37 58 #Figure out mailing list … … 54 75 for i in `echo $MAILINGLIST` 55 76 do 56 mail -s "Nightly runs of $I CE_RELEASE on: $host_name. Date:$today. DID NOT WORK CORRECTLY" $i < nightly.log77 mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today. DID NOT WORK CORRECTLY" $i < nightly.log 57 78 done 58 79 else 59 80 for i in `echo $MAILINGLIST` 60 81 do 61 mail -s "Nightly runs of $I CE_RELEASE on: $host_name. Date:$today." $i < errors.log82 mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today." $i < errors.log 62 83 done 63 84 fi … … 68 89 #Erase ice code 69 90 cd .. 70 rm -rf $I CE_RELEASE91 rm -rf $ISSM_RELEASE 71 92 72 93 #back to old ISSM_DIR
Note:
See TracChangeset
for help on using the changeset viewer.