Perl says "bad interpreter"
Lan Barnes
lbarnes at san.rr.com
Mon Mar 25 13:47:29 PST 2002
On Mon, Mar 25, 2002 at 12:15:37PM -0800, John H. Robinson, IV wrote:
> On Mon, Mar 25, 2002 at 11:44:57AM -0800, Lan Barnes wrote:
> > I wrote a little perl script on my server Linus. It tested out OK. Then I tried
> > to run it over NFS from winston. It says "bash: bad interpreter: Permission
> > denied". I have a hunch this is a safety feature. But I _want_ to run it.
> > What gives?
>
> interesting. never seen that. what is the shebang line of your perl script?
> what are the permissions of the perl script? what are the mount opts of
> the NFS file system that the script resides on? is perl in the same path
> on the production and development systems? what happens when you cp -a
> the script to a local (like, say, /tmp) file system and try to run it?
>
#!/usr/bin/perl
linus:/data on /mnt/data type nfs
(rw,noexec,nosuid,nodev,rsize=1024,wsize=1024,
hard,intr,addr=192.168.100.3)
[lbarnes at winston lbarnes]$ ll `which perl`
-rwxr-xr-x 2 root root 708188 Aug 9 2001 /usr/bin/perl
If I copy the data files and script to a local dir, the script runs like a pussycat locally.
--
Lan Barnes lbarnes at san.rr.com
Icon Consulting, Inc 858-273-6677
Believe that life is worth living and your belief
will create the fact.
- William James
--
Lan Barnes lbarnes at san.rr.com
Icon Consulting, Inc 858-273-6677
Believe that life is worth living and your belief
will create the fact.
- William James
More information about the KPLUG-List
mailing list