I am trying to run sendmytip.sh script as a cron job but I get the error saying:
line53: shelley: command not found
edited the script a little and realized, the command: cardano-cli shelley query tip --mainnet does not execute and can not be found. I dug into the crontab and realized, it’s running my the script in a restricted environment hence why cardano-cli commands can not be executed. But my question is, how do I provide a suitable path for cardano-cli commands to run in cron?
This article here under section: Cron runs your command in a restricted environment helped tremendously.
Attached is a screenshot of the error from crontab running sendmytip.sh script.