LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-10-2005, 10:42 PM   #1
cynthia_thomas
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


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
 
Old 11-11-2005, 02:59 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

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


Reply



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 08: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 01:02 AM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 07:18 AM
/usr/local/bin pilerock Linux - Newbie 2 01-19-2002 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:02 AM.

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