Written by James McDonald

November 27, 2009

I can never remember how to setup cron.

This example shows how to set up a job to run on selected days of the week.

[email protected]

# minute hour "day of month" month "day of week"
# 5 past midnight on mon-fri (sun 7or0, mon-sat is 1-6)
5  0  *  *  1-5 /home/list/cron.sh

# this one runs at 9:53AM mon to friday
# 53  9  *  *  1-5 /home/list/cron.sh

# this one runs at 2:10 am mon,wed,fri
10  2  *  *  1,2,5 /home/list/cron.sh

1 monday
2 tuesday
3 wednesday
4 thursday
5 friday
6 saturday
0,7 Sunday

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Network speed test host to host

On Ubuntu / Debian apt-get install iperf3 On Windows download it from https://iperf.fr/iperf-download.php#windows Make...

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...