I got a shell script “test.sh” which is stored in the home folder and marked executable for everyone in the fs:
It is installed via symlink to /usr/bin as “testscript”:
And as you would expect the symlinks target is accessible and executable:
I can run the script from command line by just typing “testscript” and it works as expected. BUT if I enter it as post processing script in TVHeadend only as “testscript” (without path) it is not started. If I set the post script to “/usr/bin/testscript” it works. I took the time and read the $PATH variable from within TVH and it is “/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/usr/osmc/bin:/opt/vc/bin”
So my question is: why can’t the script be run without path? I had expected it should.