Difference between revisions of "Data Transfer"

From SAAO TOPS Wiki
Jump to: navigation, search
(How it works)
Line 9: Line 9:
 
The crontab for my user:
 
The crontab for my user:
  
    MAILTO=briehan@saao.ac.za,amanda@saao.ac.za,carel@saao.ac.za
+
<pre>
    0 9 * * * /home/briehan/venv/bin/python /home/briehan/checkdata.py
+
MAILTO=briehan@saao.ac.za,amanda@saao.ac.za,carel@saao.ac.za
 +
0 9 * * * /home/briehan/venv/bin/python /home/briehan/checkdata.py
 +
</pre>

Revision as of 15:32, 8 September 2016

Verification

There's a script that runs daily at 9:00 to confirm that all data have been copied from the instruments onto astro.suth and astro.cape. The script can be viewed here while logged into Bitbucket.

How it works

This requires Paramiko, is currently configured inside of my home directory on astro2015.cape.saao.ac.za at /home/briehan/check_data.py and works by checking for the existence of fits files inside of the directories for this month and last month.

The crontab for my user:

MAILTO=briehan@saao.ac.za,amanda@saao.ac.za,carel@saao.ac.za
0 9 * * * /home/briehan/venv/bin/python /home/briehan/checkdata.py