What does mean sudden "Text file busy" when calling a script?

bash: ./myscript: /usr/bin/env: bad interpreter: Text file busy

"myscript" begins with #!/usr/bin/env python. Just retrying starting it fixed the problem.

Why system program env sporadically becomes "busy"? Can it be caused by prelink (but cron should start it not at that time...)

4

2 Answers

Commenters say that it is script busy, not env or python and is caused by text editor saving it.

Usualy it's "./myscript" witch is busy because another program modify the file. It can be a text editor (when save it) but also a remote copy (This can be long if the download rate is low) or another program.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like