Forum Moderators: bakedjake

Message Too Old, No Replies

cron jobs on a linux server

syntax for running the job every 10 minutes?

         

meingallsphp

3:22 am on May 3, 2006 (gmt 0)

10+ Year Member



I have a hosted Linux server, and I would like to run a cron job every 10 minutes. I have spoken three times with the ISP, and they keep saying they will email me the answer to my question, but the stuff they send never answers it.

My question is:

What do I need to have in my Crontab file to get a script to run every 10 minutes?

Examples they provide:

Implementing a script at a certain time
# every morning at 5:30 the script
# test.pl will be executed
30 05 * * * /homepages/xx/d#*$!xxxxx/cgi-bin/test.pl

Save one or more files to a backup every day
# execute every first day of the month
# at 1.00AM the guest book script 'guestbook.cgi'
# with the directory /backup as the target output directory
00 01 1 * * cp /homepages/xx/dxxxxxxxx/guestbook.cgi /homepages/xx/dxxxxxxxx/backup

Thank you for your help!

Romeo

12:11 pm on May 3, 2006 (gmt 0)

10+ Year Member



Have you tried
10 * * * * /your/script.sh

`man crontab` and kind regards,
R.

BertieB

9:12 pm on May 3, 2006 (gmt 0)

10+ Year Member



10 * * * * /your/script.sh

As far as I know, this will execute at 10 past the hour, every hour; ie at 0010, 0110, 0210, etc.

The syntax for every 10 minutes is (to the best of my knowledge!) as follows:


0,10,20,30,40,50 * * * * /path/to/script.sh

HTH

jezra

11:11 pm on May 3, 2006 (gmt 0)

10+ Year Member



BertieB's method will work for every 10 minutes. I believe:
*/10 * * * * /path/to/script
will also work.