Home » Questions » Computers [ Ask a new question ]

Run a command every week with Cron?

Run a command every week with Cron?

Simple question- what would a crontab entry look like for a command I want to run every week on Saturday at 8:05 AM?

Asked by: Guest | Views: 166
Total answers/comments: 3
Guest [Entry]

"These answers are all correct, if you are unaware of how to use cron in the future, use one of many cron generators:

http://www.cronmaker.com/
http://www.crontab-generatordotorg/"
Guest [Entry]

"http://www.scroungedotorg/linux/cron.html

5 8 * * 6 /usr/bin/foo

...to run every week on Saturday at 8:05 AM"
Guest [Entry]

"You can also do like this:

Change crontab:

5 8 * * * <user> cd / && run-parts --report /etc/cron.daily

And put all your command scripts in this directory /etc/cron.daily. Make sure that you have added the execution rights for them."