LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found (https://www.linuxquestions.org/questions/linux-software-2/error-when-starting-up-snort-bash-bin-sh-usr-local-bin-snort-eent-not-found-382005/)

cynthia_thomas 11-10-2005 10:42 PM

Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found
 
Hi,

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
[root@CORE-2-02 snort]#


If anybody have any solution please reply me.

thanks and regards
cynthia

MensaWater 11-11-2005 02:59 PM

Quote:

!/bin/sh/usr/local/bin/snort
If you typed the above on the command line its wrong.
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 04:20 AM.