UCLA Crontab

Listing of ucla user crontab:

45 20 * * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_check error.log
46 20 * * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_checker
55 19 * * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_format
50 20 * * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_formatRun
55 21 * * * rm /Volumes/physics_data/Code/UCLA_Code/bin/ucla_formatRun
55 * * * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_hourly
48 * * * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_hourlyRun
0 23 28 * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_remove
1 23 28 * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_cleaner
10 2,5,8,11,14,17,20,23 * * * /Volumes/physics_data/Code/UCLA_Code/bin/ucla_khour

ucla_check
This program is ran at 20:45 every day. This script remakes the ucla_checker program each day. That program will connect to the ucla cambridge machine via ftp and try to recover the hourly files which could not be downloaded the first time around. It takes an input parameter which is the error.log file (usage: ./ucla_check error.log).

ucla_checker
This program is ran at 20:46 every day. It is made daily by the ucla_check program. It tries to make a connection to the ucla cambridge machine via ftp and recover any missing files from that day.

ucla_format
This program is ran at 19:55 every day. This script remakes the ucla_formatRun program each day. That program will create the daily spreadsheet (using Hread.out) and jpeg plot (using Graph.java) of the 24 hourly files from each day. It will then move these summary files to the proper year and month within the ucla data directory. It then archives the actual hourly raw files to the proper year and month within the ucla data direcotry before removing all files from the tmp folder that are more then 4 days old.

ucla_formatRun
This program is ran at 20:50 every day and then removed at 21:55. It is made daily by the ucla_format program. It creates the daily spreadsheet (using Hread.out) and jpeg plot (using Graph.java) of the 24 hourly files from each day. It will then move these summary files to the proper year and month within the ucla data directory. It then archives the actual hourly raw files to the proper year and month within the ucla data direcotry before removing all files from the tmp folder that are more then 4 days old.

ucla_hourly
This program is ran at :55 past every hour of every day. This script remakes the ucla_hourlyRun program each day. That program connects to the ucla cambridge machine and attempts to download the current hourly file (in UTC) via ftp. If the file is not retrieved the file name is written to the error.log file. Finally, that program will then make the graph of that hour (using Hread.out and Graph.java) and place it in the ucla/Pictures web directory. This script should be ran just before the end of the hour to set the date and time, and the ucla_hourlyRun script should run just after the hour.

ucla_hourlyRun
This program is ran at :48 past every hour of every day. It is made daily by the ucla_hourly program. It connects to the ucla cambridge machine and attempts to download the current hourly file (in UTC) via ftp. If the file is not retrieved the file name is written to the error.log file. Finally, it will make the graph of that hour (using Hread.out and Graph.java) and place it in the ucla/Pictures web directory.

ucla_remove
This program is ran on the 28th day of the month at 23:00. This script creates the ucla_cleaner program. That program will connect to the ucla cambridge machine and remove files that are 3 months old.

ucla_cleaner
This program is ran on the 28th day of the month at 23:01. It is made by the ucla_remove program. It connects to the ucla cambridge machine and remove files that are 3 months old.

ucla_khour
This program is ran at :10 past every third hour of every day. It calls the Hread.out program followed by Kindex.java in order to produce the Cambridge magnetometer K-index graphic. This jpeg is then moved to the ucla/Pictures web directory. It is also archived in the POLARINDEX directory. Finally, if a mail.txt file has been created by the java program, this script emails a list of users to notify them of a high index value.