Tips for cron

Hi there,

We all know that if one wants to schedule jobs (commands or shell scripts) to run periodically at certain times or dates, he can use `cron`.

If you `man cron` you would like to get:

Cron – daemon to execute scheduled commands.

And here are some tips for newcomes:

1. Use absolute path instead of relative path. For example:

*/5 * * * * /home/ubuntu/cron/test.sh

And what in the test.sh should also use the absolute path.

 

2.  I haven’t thought about yet 🙂

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.