From 21f03322c6cc42e59dddb97696e71680acd4d77d Mon Sep 17 00:00:00 2001 From: keplyx Date: Sat, 14 Mar 2020 15:49:12 +0100 Subject: [PATCH] Added cron script --- cron_appli_update.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 cron_appli_update.sh diff --git a/cron_appli_update.sh b/cron_appli_update.sh new file mode 100755 index 0000000..0632209 --- /dev/null +++ b/cron_appli_update.sh @@ -0,0 +1,41 @@ +#/bin/bash! + +# * * * * * command to be executed +# - - - - - +# | | | | | +# | | | | +----- day of week (0 - 6) (Sunday=0) +# | | | +------- month (1 - 12) +# | | +--------- day of month (1 - 31) +# | +----------- hour (0 - 23) +# +------------- min (0 - 59) + +# * * * * * #Runs every minute +# 30 * * * * #Runs at 30 minutes past the hour +# 45 6 * * * #Runs at 6:45 am every day +# 45 18 * * * #Runs at 6:45 pm every day +# 00 1 * * 0 #Runs at 1:00 am every Sunday +# 00 1 * * 7 #Runs at 1:00 am every Sunday +# 00 1 * * Sun #Runs at 1:00 am every Sunday +# 30 8 1 * * #Runs at 8:30 am on the first day of every month +# 00 0-23/2 02 07 * #Runs every other hour on the 2nd of July + +# @reboot #Runs at boot +# @yearly #Runs once a year [0 0 1 1 *] +# @annually #Runs once a year [0 0 1 1 *] +# @monthly #Runs once a month [0 0 1 * *] +# @weekly #Runs once a week [0 0 * * 0] +# @daily #Runs once a day [0 0 * * *] +# @midnight #Runs once a day [0 0 * * *] +# @hourly #Runs once an hour [0 * * * *] + +* * * * * cd $HOME/public_html/facebook/ && ./facebook_update.sh >/dev/null 2>&1 +# Call 2 times, one with a 30 sec delay +* * * * * cd $HOME/public_html/ && ./update_washinsa.sh >/dev/null 2>&1 +* * * * * cd $HOME/public_html/ && (sleep 30 ; ./update_washinsa.sh) >/dev/null 2>&1 + +0 0 * * * cd $HOME/public_html/menu/ && ./menu_update.sh >/dev/null 2>&1 + +# Add at the end of the command to stop emails +# >/dev/null 2>&1 + +