FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 4b43228a authored by J.W. Smith's avatar J.W. Smith
Browse files

Generalised the shell scripts called by cron. These now determine project path...

Generalised the shell scripts called by cron. These now determine project path from where the script is sitting.
parent 29843f05
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#Checks to see if todays ENVIRONEMTN data is available yet,
#Getting working directory from this script's location
coordpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/"
cd ${coordpath}
cautionstr="Looking for coordinator scripts in "${coordpath}
printf "=============\n" >> ${coordpath}ENVDatalogs.txt
printf "$( date ) \n" >> ${coordpath}ENVDatalogs.txt
printf "${cautionstr}\n" >> ${coordpath}ENVDatalogs.txt
#Checks to see if todays ENVIRONEMNT data is available yet,
#if so, pulls it down
#and starts the portion of the EWS that runs on the Cambridge servers
/storage/app/Ethiopia-EWS/Ethiopia-EWS-Coordinator/ENVDataProcessor.pl >> /storage/app/Ethiopia-EWS/Ethiopia-EWS-Coordinator/ENVDatalogs.txt 2>&1
${coordpath}ENVDataProcessor.pl >> ${coordpath}ENVDatalogs.txt 2>&1
#!/bin/bash
#Getting working directory from this script's location
coordpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/"
cd ${coordpath}
cautionstr="Looking for coordinator scripts in "${coordpath}
printf "=============\n" >> ${coordpath}NAMEDatalogs.txt
printf "$( date ) \n" >> ${coordpath}NAMEDatalogs.txt
printf "${cautionstr}\n" >> ${coordpath}NAMEDatalogs.txt
#Checks to see if todays NAME deposition data is available yet,
#if so, pulls it down
#and starts the portion of the EWS that runs on the Cambridge servers
/storage/app/Ethiopia-EWS/Ethiopia-EWS-Coordinator/DataProcessor.pl >> /storage/app/Ethiopia-EWS/Ethiopia-EWS-Coordinator/NAMEDatalogs.txt 2>&1
${coordpath}DataProcessor.pl >> ${coordpath}Datalogs.txt 2>&1
#!/bin/bash
#Getting working directory from this script's location
coordpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/"
cd ${coordpath}
cautionstr="Looking for coordinator scripts in "${coordpath}
printf "=============\n" >> ${coordpath}SurveyDatalogs.txt
printf "$( date ) \n" >> ${coordpath}SurveyDatalogs.txt
printf "${cautionstr}\n" >> ${coordpath}SurveyDatalogs.txt
#Checks to see if new survey data is available on servers,
#if so, pulls it down and runs clustering analysis
/storage/app/Ethiopia-EWS/Ethiopia-EWS-Coordinator/SurveyDataProcessor.pl >> /storage/app/Ethiopia-EWS/Ethiopia-EWS-Coordinator/SurveyDatalogs.txt 2>&1
${coordpath}SurveyDataProcessor.pl >> ${coordpath}SurveyDatalogs.txt 2>&1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment