Manually Simulate "bad interpreter: Text file busy"
Sometimes I get an error:
chmod +x a.sh
./a.shError
a.sh: /bin/bash: bad interpreter: Text file busyI 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
- Simulate the "busy file" error 10 times
- Add fix
- Ensure the fix works