Advertisement
dcuddihy-acr-me

kewr.acr.lan.issue-84

Apr 5th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # [Issue 84](https://bitbucket.org/autonomy/knyc.acr.lab/issue/84 )
  3. #
  4. set -x
  5. set -e
  6.  
  7. echo "Started: " $(date)
  8.  
  9. source /etc/portion.env
  10. source /etc/profile.d/runtime-context.sh
  11.  
  12. export PATH=$PATH:/opt/bbthyme/current/bin
  13.  
  14. echo $RUNTIME_CONTEXT
  15. echo $PYTHONPATH
  16. echo $PATH
  17.  
  18. # Copy in fresh forecasts.
  19. 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
  20.  
  21. # Delete previously posted events for 20140405.
  22. 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
  23.  
  24. #
  25. # Generate all currency scorecard outputs.
  26. #
  27.  
  28. # Get latest ACR Forecasts from Google-Docs.
  29. /opt/bbginger/current/bin/prepare-acr-forecasts.py
  30. /opt/bbginger/current/bin/harvest-acr-forecasts.py
  31.  
  32. # Create reports.
  33. /opt/bbginger/current/bin/scorecard-make-input-report.py &
  34. /opt/bbginger/current/bin/scorecard-make-diffs-report.py &
  35. /opt/bbginger/current/bin/scorecard-make-hist-csvs.py &
  36. /opt/bbginger/current/bin/scorecard-make-pdf.sh &
  37.  
  38. # Wait for all child-processes to terminate.
  39. wait
  40.  
  41. # Update latest output symlink
  42. /opt/bbginger/current/bin/scorecard-update-output-symlink.py
  43. echo "Finished: " $(date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement