Re: Problem: 'bad interpreter: Permission denied'
On Wed, 8 Jan 2003, Alvin Oga wrote:
> hi ya peter
>
> On 8 Jan 2003, Peter Johnson wrote:
>
> > Not it, this is the file server so all filesystems are local. Sorry for
> > not mentioning it.
>
> sometimes ... if you copy foo.pl to dos partitions/floppies
> adn copy that script from dos back to linux... you'd sometimes get that
> error
>
> - check to see if you need to convert \m to \n
>
> have fun
> alvin
>
> > On Wed, 2003-01-08 at 21:58, Colin Watson wrote:
> > > On Wed, Jan 08, 2003 at 09:39:43PM +1100, Peter Johnson wrote:
> > > > I have a small problem and was hoping that someone else out there
> > has
> > > > experienced and resolved it for themselves at some stage in the
> > past.
> > > >
> > > > Basically, whenever I attempt to execute a script it dies with the
> > 'bad
> > > > interpreter: Permission denied' catch-cry. So far this is sh and
> > perl
> > > > files i.e. files beginning with "#!/bin/sh" or "#!/usr/bin/perl".
> > > >
> > > > Ok, I know what your thinking, the x bit hasn't been set on either
> > > > /bin/sh and /usr/bin/perl OR on the script files themselves. Well
> > they
> > > > have.
> > >
> > > Maybe some filesystem is mounted with the noexec flag? (guesswork)
> > >
Reply to: