0
Fixed

bad interpreter: Text file busy

mark page 14 years ago updated by Alexander Blach (Developer) 13 years ago 1

When editing Perl CGI over SSH (SFTP) scripts will not execute from the shell or via Apache. Log shows "bad interpreter: Text file busy" and running "lsof | grep filename.pl" shows sftp-serv has the file open. After closing Textastic the file is executable again from the shell and Apache. Netstat confirms the SSH connection is being held open by Textastic (even when in the background on iPad) until the app is closed. Any thoughts on how to work around this?

Answer

Answer
Fixed
I could reproduce the problem now. It will be fixed in the next update.
Texastic (or actually libcurl) keeps the connection alive for reuse for the next operation. This is done because authentication takes quite long and reusing connections speeds up everything dramatically. Actually, the file should be closed by the server after an upload is complete even when the connection is still alive.

Which server software/ssh server are you using? Maybe I can reproduce the issue and find a workaround.
Answer
Fixed
I could reproduce the problem now. It will be fixed in the next update.