When running a script with cron, any executable called inside must have the full path. I discovered this trying to run wondershaper, when many errors showed when it tried to call tc. So my question is, what's the proper way to overcome this problem?
Possible solutions:
- cd to the executable folder and prepare symbolic links to any other called executable there (not sure if it works - low portability)
- use full paths in the script (it works - low portability across different distros)
- exporting a path variable with the needed paths inside the script (not sure if it works)
Well, thanks in advance for anyone helping.