Tag Archives: cronjob doesnt run

FreeBSD / Unix – scritp doenst work as cronjob.

When you’ve created a script and you want to ‘run’ it for example every 5minutes on your webserver you can create an cronjob.

But when the cronjob should launch your script, nothing happens and when you run it manually on the server it does work.

There is a simple solution for this.
Cron can only handle ‘full paths’ if for example you have in your script:
rsync ……. it wont work via cron, you have to put it in your script like this:
/usr/local/bin/rsync ……

So use full paths!