1
source | link

As always, it had nothing to do with anything except for an error in the script I was trying to run!

Specifically, the script I was calling, was trying to run another script which is located in the same directory. To get the name of the common directory, rather than using BASE_DIR=$(dirname $(readlink -f "$0")) I accidently wrote BASE_DIR=$(readlink -f "$0"), and needless to say, "${BASE_DIR}/another_script.sh arg1 arg2..." failed (it was trying to run the non-existing non-sense path /path/to/script.sh/another_script.sh) with status code 126.

    Post Made Community Wiki by Yuval