Getting bad interpreter error

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: mazdaracer
Date:  
Subject: Getting bad interpreter error
I copied it from the text download of the ipmasq HOWTO, so yes that's
possible. I mod'ed the file a bit in emacs to point to the correct
IPTABLES location and made sure the IP settings where as I wanted.

What do I run the file thru to ensure LF only vs CR-LF?


Craig White wrote:
>
> On Wed, 2002-12-11 at 10:08, mazdaracer wrote:
> > Yes to all!
> >
> > iptables -L returns empty fields
> >
> > ls -lt on /etc/rc.d returns rwx on rc.firewall-2.4
> >
> > which sh returns /bin/sh
> >
> > and finally while in /etc/rc.d:
> > ./rc.firewall-2.4 returns
> > : bad interpreter: No such file or directory
> >
> -----
> I was thinking line 4
>
> FWVER=0.70
>
> was a comment and needed a # at the start of the line. But that
> shouldn't give that error and it shouldn't stop it from cruising through
> the rest of the file.
>
> Is it possible that there is something wrong with the file...as in maybe
> downloaded with Windows and the line endings are ms-dos (CR+LF) instead
> of unix (LF)?
>
> Is there another / previously working copy of this file?
>
> I have to believe that other shell scripts work fine or it would be
> posing many other challenges on your computer.
>
> Craig
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss