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...
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...
Comments