Re: Iptables not starting
From: John Crane (jcrane_at_crane.net)
Date: 09/28/05
- Previous message: Scott Hemphill: "Re: Kernel parameters"
- In reply to: Tommy Reynolds: "Re: Iptables not starting"
- Next in thread: Tommy Reynolds: "Re: Iptables not starting"
- Reply: Tommy Reynolds: "Re: Iptables not starting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Sep 2005 23:20:16 -0500
Tommy Reynolds <TommyReynolds@yahoo.com> wrote in
news:pan.2005.09.27.15.40.53.388580@yahoo.com:
> On Tue, 27 Sep 2005 00:22:40 -0500, John Crane wrote:
>
>> One more thing. I have a sample configuration script. I want to run
>> it then save the config. I try ./rc.firewall to run it then I get the
>> error: bad interpreter: No such file or directory I check the file
>> and see that bash is installed and the top of the script has
>> #!/bin/bash. Why doesn't this run?
>
> Make sure that the file is in UNIX format, with only an NL, aka LF,
> character for the line endings. If the file is a DOS file, it will
> have both CR and LF characters; this will cause the behavior you are
> seeing.
>
> Check it, on Fedora 4 at least, like this:
>
> $ file foo
> foo: ASCII text, with CRLF line terminators
>
> That is bad. Fix it like this:
>
> $ dos2unix foo
> dos2unix: converting file foo to UNIX format ...
>
> $ file foo
> foo: ASCII text
>
> Cheers!
>
>
Hi Guys thanks for all your help. I found that it was actually because
the script needed to be in unix format. I opened it in VI and set the
format to unix and it works!
Thanks for all your help,
J
- Previous message: Scott Hemphill: "Re: Kernel parameters"
- In reply to: Tommy Reynolds: "Re: Iptables not starting"
- Next in thread: Tommy Reynolds: "Re: Iptables not starting"
- Reply: Tommy Reynolds: "Re: Iptables not starting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|