Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found
I was installing snort on my linux machine.When I stsrt up snort I got the following error msg.
Does anyboby know the answer?
[root@CORE-2-02 snort]# !/bin/sh/usr/local/bin/snort -A fast -d -u snort -g snort -D -c /etc/snort/snort.conf
bash: !/bin/sh/usr/local/bin/snort: event not found
If anybody have any solution please reply me.
thanks and regards
1) You shouldn't have "!" in the beginning.
2) You would need to have a space between "/bin/sh" and "/usr/local/bin/snort" if snort was a shell script.
3) You don't even need "/bin/sh" if "/usr/local/bin/snort" is executable (ls -l /usr/local/bin/snort to see permissions in the left most column - see "man chmod" for details on how to make a file executable.)
Your prompt ends in "#" so it may be you're thinking you need "#!/bin/sh" because you've seen that somewhere for shell scripts. In this case the "#" in your prompt is just a character and has no meaning. the "#!/bin/sh" syntax would need to appear as the first line of a script and tells the script to be interpreted using /bin/sh - this is common in scripts so that they run as expected if the user is not already using the same shell.
|All times are GMT -5. The time now is 09:02 PM.|