A script which runs successfully as root or owner, fails when run through pmrun < script > with: Exec Format Error
说明
Running a script with pmrun fails with the following error:
Exec Format Error
This same script runs successfully when run as root of by the owner
原因
There isn't a shebang line in the script.
解决办法
Make sure that there is a shebang line in the script. Also confirm that the script in question is executable and that the shell interpreter in the shebang line exists on the system.