Fedora, ulod and fwfilter

Place to discuss Fedora and/or Red Hat

Fedora, ulod and fwfilter

Postby Basher52 » Mon Feb 09, 2004 12:18 pm

has anyone tried using the fwfilter.sh script in Fedora?
(all info: http://rocky.molphys.leidenuniv.nl/)

i uswe this for a more readable layout of the ulogd data, but all i get is this error:
________________________________________
[root@Basher52 root]# tail -f /var/log/ulogd.syslogemu | fwfilter
: bad interpreter: No such file or directory
________________________________________
i get the same error even if i just run the fwfilter script itself :(
ive tried version 170, 172, 180 and 182 but they all say the same thing :(

i used fwfilter in RH9 and that worked perfectly, but not in Fedora.
I cant remember the version i used in RH9.

B52
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Mon Feb 09, 2004 12:34 pm

I don't know what the script is or does but it looks like the first line of it must be wrong. Scripts in *NIX start off with the first line describing what interpreter to use to interpret the code in the script. e.g. bash scripts should start off with "#!/bin/bash", perl scripts should start off with "#!/usr/bin/perl", etc. This allows the script to execute the interpreter directly rather than having to execute the interpreter and pass the script as a parameter (bash mybashscript.bash). If that first line is wrong you will usually see an error like the one you are posting. If it looks like the first line is indeed correct, then your script may be DOS formated rather than UNIX formatted which means there will be a CRLF "\r\n" at the end of the line rather than just a LF "\n". That will also screw it up. If you still can't get it just let me know where I can find that script and I'll look at it this evening.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Mon Feb 09, 2004 2:04 pm

the first thing i thought of was the '"#!/bin/bash" line, but the thing you said about the CRLF i didnt think of...i tried it again, and it worked...
thanks Void...i hope i can think of this the next time I get it

:) B52

oh..btw...the script is inside this:
http://rocky.molphys.leidenuniv.nl/ipta ... rewall.tgz , and it creates a more readable log output...
just try...: 'tail -f /var/log/ulogd.syslogemu | fwfilter'
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 0 guests

cron