Skip to content
Advertisement

Text file is busy error from a shell script file

I am currently working on a project that writes and executes a shell script based on the input of the user.

JavaScript

And I run the Shell file with this:

JavaScript

But whenever the code executes the shell script, I get the error message: Text file is busy

Advertisement

Answer

All I had to do is close the file before executing it as described in the first comment.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement