<commit_before>#
#	crontab some_crontab_text_file.txt
#		will overwrite the entire existing crontab setup.
#
#	crontab -e 
#		will open up an editor
#
#	crontab -l
#		will display the crontab file
#
#	* * * * * Command to be executed
#	- - - - -
#	| | | | |
#	| | | | +----- Day of week (0-6)
#	| | | +------- Month (1 - 12)
#	| | +--------- Day of month (1 - 31)
#	| +----------- Hour (0 - 23)
#	+------------- Min (0 - 59)
#
#
# @monthly        Run once a month, "0 0 1 * *".
# @weekly         Run once a week, "0 0 * * 0".
# @daily          Run once a day, "0 0 * * *".
#
#
#
#
#
#	Which shell?	Setting must include path apparently
SHELL=/bin/tcsh
#
#	To what is RAILS_ENV set?	seems unset (is set in .tcshrc so if tcsh is shell is set)
#	Could also explicitly set it
RAILS_ENV=production
#
#
#	Without setting mail will be stored locally on this computer.
#	I think setting MAILTO='' will stop it from being sent.
#	Could also set the ~/.forward file to this as well.
#MAILTO='<EMAIL>'
#	As of 20140120-ish, the cron daemon would send error emails
#	The setting of MAILTO='<EMAIL>' has stopped them.
MAILTO='<EMAIL>'
#	apparently genepi1 isn't set to send external email
#
#   ----- The following addresses had permanent fatal errors -----
#<<EMAIL>>
#    (reason: 550-Verification failed for <<EMAIL>domain>)
#
#
#	Can I have a series of commands in crontab, or should I put it all in one script.
#	Yes.  Either way.  Seems that everything after the time designation is executed
#


#
#	Dump significant tables to xml.
#
#	According to Yang, this is not being and has never been used.
#@daily cd /my/ruby/odms/ ; bundle exec rake app:data:export_to_xml >> /my/ruby/logs/export_to_xml.log



#
#	Try to import the latest icf_master_tracker file
#
#	every WEEKday at 8PM
#	Changed mounting using fstab (more unixy).  Should never lose mount now.
#	Also, fyi "abort" calls from rake task will send email.
0 20 * * 1,2,3,4,5 cd /my/ruby/odms/ ; bundle exec rake automate:updates_from_icf_master_tracker >> /my/ruby/logs/automate_updates_from_icf_master_tracker.log



#
#	import bc_info screening data (from ICF)
#	Every OTHER Wednesday at 7PM
#
#	can't really do the "OTHER" with just cron
#
0 19 * * 3 cd /my/ruby/odms/ ; bundle exec rake automate:import_screening_data >> /my/ruby/logs/automate_import_screening_data.log





#
#	import birth_data (from USC)
#	Every Thursday at 7PM ( NOT YET THOUGH )
#
#0 19 * * 4 cd /my/ruby/odms/ ; bundle exec rake automate:import_birth_data >> /my/ruby/logs/automate_import_birth_data.log






#	
#	Add daily mysql_dump<commit_msg>Comment<commit_after>#
#	crontab some_crontab_text_file.txt
#		will overwrite the entire existing crontab setup.
#
#	crontab -e 
#		will open up an editor
#
#	crontab -l
#		will display the crontab file
#
#	* * * * * Command to be executed
#	- - - - -
#	| | | | |
#	| | | | +----- Day of week (0-6)
#	| | | +------- Month (1 - 12)
#	| | +--------- Day of month (1 - 31)
#	| +----------- Hour (0 - 23)
#	+------------- Min (0 - 59)
#
#
# @monthly        Run once a month, "0 0 1 * *".
# @weekly         Run once a week, "0 0 * * 0".
# @daily          Run once a day, "0 0 * * *".
#
#
#
#
#
#	Which shell?	Setting must include path apparently
SHELL=/bin/tcsh
#
#	To what is RAILS_ENV set?	seems unset (is set in .tcshrc so if tcsh is shell is set)
#	Could also explicitly set it
RAILS_ENV=production
#
#
#	Without setting mail will be stored locally on this computer.
#	I think setting MAILTO='' will stop it from being sent.
#	Could also set the ~/.forward file to this as well.
#MAILTO='<EMAIL>'
#	As of 20140120-ish, the cron daemon would send error emails
#	The setting of MAILTO='<EMAIL>' has stopped them.
MAILTO='<EMAIL>'
#	apparently genepi1 isn't set to send external email
#
#   ----- The following addresses had permanent fatal errors -----
#<<EMAIL>>
#    (reason: 550-Verification failed for <<EMAIL>>)
#
#
#	Can I have a series of commands in crontab, or should I put it all in one script.
#	Yes.  Either way.  Seems that everything after the time designation is executed
#


#
#	Dump significant tables to xml.
#
#	According to Yang, this is not being and has never been used.
#@daily cd /my/ruby/odms/ ; bundle exec rake app:data:export_to_xml >> /my/ruby/logs/export_to_xml.log



#
#	Try to import the latest icf_master_tracker file
#
#	every WEEKday at 8PM
#	Changed mounting using fstab (more unixy).  Should never lose mount now.
#	Also, fyi "abort" calls from rake task will send email.
0 20 * * 1,2,3,4,5 cd /my/ruby/odms/ ; bundle exec rake automate:updates_from_icf_master_tracker >> /my/ruby/logs/automate_updates_from_icf_master_tracker.log



#
#	import bc_info screening data (from ICF)
#	Every OTHER Wednesday at 7PM
#
#	can't really do the "OTHER" with just cron
#
0 19 * * 3 cd /my/ruby/odms/ ; bundle exec rake automate:import_screening_data >> /my/ruby/logs/automate_import_screening_data.log





#
#	import birth_data (from USC)
#	Every Thursday at 7PM ( NOT YET THOUGH )
#	Probably will never happen.  We don't receive them regularly.
#
#0 19 * * 4 cd /my/ruby/odms/ ; bundle exec rake automate:import_birth_data >> /my/ruby/logs/automate_import_birth_data.log






#	
#	Add daily mysql_dump
{'fraction_non_alphanumeric': 0.1314878892733564, 'fraction_numerical': 0.020376778162245292, 'mean_word_length': 3.0775862068965516, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '476707', 'n_tokens_mistral': 2024, 'n_tokens_neox': 1875, 'n_words': 650}