Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

Hi all I have an ubuntu server where I want to create a cron every sunday al 23:00 I have read manual and I have try to use some cron generator. I have tried in this mode:

0 23 * * * root test.php

But this I think that every day works right? How can I make that this script only works on Sunday?

Thanks

share|improve this question

marked as duplicate by SvW, Tom O'Connor Jun 12 '13 at 9:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
If you had bothered to read the documentation this would have been trivial to figure out yourself. –  Iain Jun 13 '13 at 15:39

1 Answer 1

up vote 1 down vote accepted
0 23 * * 0 root test.php

last field is"day of week" and 0 represents sunday.

share|improve this answer
    
Thanks for the help, I'll try it! –  WebDesigner Jun 12 '13 at 10:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.