Celeb Glow
general | March 30, 2026

Manually Simulate "bad interpreter: Text file busy"

Sometimes I get an error:

chmod +x a.sh
./a.sh

Error

a.sh: /bin/bash: bad interpreter: Text file busy

I figured out the solutions was to add a sleep between the two lines:

BUT the problem is I am not able to re-create the issue which makes the text file busy. I basically want to

  1. Simulate the "busy file" error 10 times
  2. Add fix
  3. Ensure the fix works
5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

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