Create a cronjob on Ubuntu

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/

Posted in bananapi, Linux, Raspberry PI

Leave a Reply