Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Hidden Characters?

by Fastolfe (Vicar)
on Nov 14, 2000 at 00:42 UTC ( #41417=note: print w/replies, xml ) Need Help??

in reply to Hidden Characters?

Is emacs still open, or do you exit it before you try to run your script? It sounds almost like a program is putting a lock on the file, preventing it from being read by another application. It's not inserting any characters.

Update: Typically you get this error when you attempt to execute or write to a file that is currently being written to. So it may have less to do with locking and more to do with slow writes? Note that you can get this error against the Perl binary itself, not just a script. Don't be misled by the word "text".

The solution is just to wait until Emacs is finished saving the file. If you're sure this is the case, and you continue to consistently get this error message even after exiting Emacs, maybe do an 'lsof' on the file and see if you can identify any other applications that have it open.

Update: Note that Re: Hidden Characters? makes these theories unlikely. Very weird problem.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://41417]
[jdporter]: Node=1169071 — Author= — Date=

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-05-23 20:47 GMT
Find Nodes?
    Voting Booth?