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


Comments

Popular posts from this blog

Connect the Xiaomi Yi Ants Cam to your Synology Surveillance Station

Resolve "Cannot download packages whilst offline" issue in Deja-Dup backup software

TXT_DB error number 2 failed to update database