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

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

ubuntu 20.04 / netplan / change mac address and static ip

wireshark ssh remote connect on linux server