Re: Iptables not starting

From: John Crane (jcrane_at_crane.net)
Date: 09/28/05

  • Next message: Frank Dedun: "terminal emulation"
    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


  • Next message: Frank Dedun: "terminal emulation"

    Relevant Pages

    • Re: fcntl problems
      ... of the things this script will do is open a file to stash some ... I expect that this script will always finish its ... Process A opens file foo ...
      (comp.lang.python)
    • Re: fcntl problems
      ... of the things this script will do is open a file to stash some ... I expect that this script will always finish its ... Process B determines that file foo is locked ...
      (comp.lang.python)
    • minidom xml & non ascii / unicode & files
      ... at first i had no problem using python minidom and everything concerning my regex/xml processing works fine, until i tested my tool on some french page with "non ascii" chars and my script started to throw errors all over the place.. ... I've looked into the matter and discovered the unicode / string encoding processes implied when dealing with non ascii texts and i must say i almost lost my mind.. ... And can i decode it to unicode and encode it back to a byte string so i can use it in my code, with the charsets i want, like ... in the same idea could anyone try to post the few lines that would actually parse an xml file, with non ascii chars, with minidom. ...
      (comp.lang.python)
    • script too slow - sometimes hangs
      ... I wrote the following perl script to wander through my hard drive ... 436 - ASCII C program text ... 13 - ASCII C program text, with CRLF line terminators ...
      (comp.lang.perl.misc)
    • Re: Renaming a file..
      ... > Download details: Windows Script Documentation ... > For OpenTextFile, using True as the 3rd argument means create the file if ... > as Unicode format rather than the default of ASCII. ... >> Const ForAppending = 8 ...
      (microsoft.public.scripting.vbscript)