[Snort-users] Snort in shell script

wkitty42 at ...14940... wkitty42 at ...14940...
Fri May 19 01:27:37 EDT 2017

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-
> $ 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.

More information about the Snort-users mailing list