11 January 2012

Bash script launched by cron on OpenBSD not working

In the pink world of Ubuntu from where I come, things are easy, and PATH variable is fully set in each context.
But in the dark world of OpenBSD, things aren't always obvious ;)

If you decide to write a bash script intended to be used as a cron task, DO NOT forget to fully qualify path of non standard commands :
e.g. zip or smbclient should be written as /usr/local/bin/zip and /usr/local/bin/smbclient.

Hope it could save time for others...

No comments: