A: 

Maybe perl was being upgraded when you tried to run those scripts? Or maybe the scripts were on an unavailable filesystem? Does it still happen or was a one time thing?

Vinko Vrsalovic
It was a one-time thing. I suspect it was related to disk activity, but I'd like to know what's going on.
chris
A: 

This always has to do with the perl interpreter (/usr/bin/perl) being inaccessible. In fact, it happens when a shell script is running or awk or whatever is on the #! line at the top of the script.

The cause can be many things ... perms, locked file, filesystem offline, and on and on.

It would obviously depend on what was happening at the exact moment you ran it when the problem occured. But I hope the answer is what you were looking for.

Rap
The error message "text file busy" has a specific meaning, and wouldn't be caused by any of the issues you mentioned.
@duskwuff, care to elaborate? Can you share your wisdom with the rest of us? (btw, my research says exactly what I was sharing).
Rap
+4  A: 

I'd guess you encountered this issue.

The Linux kernel will generate a bad interpreter: Text file busy error if your Perl script (or any other kind of script) is open for writing when you try to execute it.

You don't say what the disk-intensive processes were doing. Is it possible one of them had the script open for read+write access (even if it wasn't actually writing anything)?

cjm
That sounds reasonable - I was working on the script, and this happened just as I saved it and then tried running it.
chris
So probably the "disk-intensive process" didn't do anything to your script directly, but it kept the disk busy enough that your stalled while writing out the script and kept it open for several seconds.
hobbs
That's what I'm thinking - it seems to make sense in any case.
chris
Sorry, I know you understood what I meant, but typos bug me. I meant "your editor" above of course :)
hobbs