in reply to Re^2: bad interpretor error when running scripts off an NFS share
in thread bad interpretor error when running scripts off an NFS share

Maybe the NFS share is mounted as "noexec"? (I think that would produce the exact error you're getting, whereas some trailing junk char(s) in the shebang line would rather produce "... No such file or directory").

What does mount show for the share in question?

Replies are listed 'Best First'.
Re^4: bad interpretor error when running scripts off an NFS share
by GaijinPunch (Pilgrim) on Oct 17, 2009 at 12:16 UTC
    YOU WIN! It is indeed mounted as noexec. However, I'm mounting it in fstab, and the options are only 'defaults,user'. I'll google around and see what I'm doing wrong. Cheers for that... and to everyone else that gave their 2 cents worth.