cron help

yuser yuser at hi.net
Sat Feb 16 22:01:49 PST 2002


On Sat, 16 Feb 2002 17:41:35 -1000 (HST), "Rodney Kanno"
<pepe65 at hawaii.rr.com> said:
>
>This should run the command mpg123 every 20 minutes after each hour, but how
>do I get it to run between times (10am - 4pm)?
>
You can do the whole thing in one line..

20 10-16 * * 1-5 mpg123

if you want it every 20 minutes and not just 20 minutes after the hour
use:
0,20,40 10-16 * * 1-5 mpg123

The format is
* * * * * [command to run]
minute (0-59)
hour (0-23)
day of the month (1-31)
month of the year (1-12)
day of the week (0-6 with 0=Sunday)

If you do not want the confirmation email use
20 10-16 * * 1-5 mpg123 1> /dev/null 2> /dev/null



More information about the LUAU mailing list