Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-10-2005, 11:42 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 28

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

If anybody have any solution please reply me.

thanks and regards
Old 11-11-2005, 03:59 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,553
Blog Entries: 15

Rep: Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 03:30 AM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 08:18 AM
/usr/local/bin pilerock Linux - Newbie 2 01-19-2002 12:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration