Today about doing cronjobs::

crontab -l

shows you the current cronjobs

 

 

crontab -e

if no file exists a new one is created.

insert a rule to active the new job

 

for example

30 3 * * * /home/user/dothatthingatnight.sh

dothatthingatnight.sh is executed every day at 3.30am.

Possible errors:

  1. Wrong permissions!! Remember that the crontab -e is for the current user only. so the current user must be able to execute dothatthingatnight.sh
  2. computer is down at this time 🙂

 

for further information akkording to cronjobs please take a look at

http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/

Leave a comment

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close