Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # [Issue 84](https://bitbucket.org/autonomy/knyc.acr.lab/issue/84 )
- #
- set -x
- set -e
- echo "Started: " $(date)
- source /etc/portion.env
- source /etc/profile.d/runtime-context.sh
- export PATH=$PATH:/opt/bbthyme/current/bin
- echo $RUNTIME_CONTEXT
- echo $PYTHONPATH
- echo $PATH
- # Copy in fresh forecasts.
- curl -L "https://www.dropbox.com/s/28i2pvz3i9be61g/acr-scorecard-forecast-input.xls" > /opt/data/in/me.acr/dda/20140405/acr-scorecard-forecast-input.xls
- # Delete previously posted events for 20140405.
- curl "http://pastebin.com/raw.php?i=teQz8VRD" | tx-names-to-refqs | tx-get-index-events --tbeg 20140405 --tend 20140506 --reporter-name acr | grep -v id | cut -d, -f1 | tx-delete-index-events
- #
- # Generate all currency scorecard outputs.
- #
- # Get latest ACR Forecasts from Google-Docs.
- /opt/bbginger/current/bin/prepare-acr-forecasts.py
- /opt/bbginger/current/bin/harvest-acr-forecasts.py
- # Create reports.
- /opt/bbginger/current/bin/scorecard-make-input-report.py &
- /opt/bbginger/current/bin/scorecard-make-diffs-report.py &
- /opt/bbginger/current/bin/scorecard-make-hist-csvs.py &
- /opt/bbginger/current/bin/scorecard-make-pdf.sh &
- # Wait for all child-processes to terminate.
- wait
- # Update latest output symlink
- /opt/bbginger/current/bin/scorecard-update-output-symlink.py
- echo "Finished: " $(date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement