How to write a cron that will run a script every day at midnight?

Viewed 231007

I have heard crontab is a good choice, but how do I write the line and where do I put it on the server?

6 Answers

Put this sentence in a crontab file: 0 0 * * * /usr/local/bin/python /opt/ByAccount.py > /var/log/cron.log 2>&1

Related