Snort mailing list archives

Re: Snort in shell script


From: wkitty42 () windstream net
Date: Fri, 19 May 2017 01:27:37 -0400

On 05/18/2017 04:27 PM, ‫moon sun‬ ‫ wrote:
Hello,
I'm trying to use linux shell script to perform multiple snort commands
dynamically , i put them in a vi editor and save it and then make this file
executable: >
$ cd ~/snort5_src
$ cd snort-2.9.9.0
$ snort -dev -n 20  -l /home/hduser/log7 -b -c /etc/snort5/snort.conf
$ chmod a+rwx /home/hduser/log7/snort.log.*
$ tcpdump -n -tttt -r /home/hduser/log7/snort.log.* > /home/hduser/log7/bigfile2.txt

do you actually have the leading "$ " on each of those lines in that file?? if 
so, remove them...

-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: