cron tab commands

Hello:

If I want to run a crontab every hour between 9 am to 9pm, will this work

00 09-19 * * * /.../.../../program.sh

If the above does not work, what should it be ??

Thanks, ST2000

Yeah, that would work fine. Using the - to denote a range is fine in a crontab. Except you need to use 21 for 9pm instead of 19. . . . .

00 09-21 * * * /.../.../../program.sh

19=7pm

I'd stay away from ../../etc. Give the full path to the program you want to execute. Just a thought.

Cheers,

Keith

Hi ST2000

You have to use 21 in place of 19 and mention full path instead of ../../. I am cent percent sure this will not work.

Regards
vasanth