/bin/bash: bad interpreter: Text file busy
/bin/bash: bad interpreter: Text file busy Error and Solution
Q. I'm getting an error as follows while trying to run a shell script over remote ssh session:
./myscript.sh
/bin/bash: bad interpreter: Text file busy
How do I fix this error message and run the script?
A. This error means some other process or user is accessing your file. Your script file is open and hence bash giving out this error.