[Snort-users] Can't Parse "snort -V"

Dale L. Handy dhandy at ...2998...
Thu Jul 31 15:20:03 EDT 2003


Use the following instead, since the version (and much of the other 
information) is being written to stderr:

    snort -V >versionfile.txt 2>&1

This will redirect both stdout and stderr to the file versionfile.txt.


John Crain wrote:

>I'm attempting to automate snort version on multiple
>sensors.  However, I can't parse "snort -V"...  snort
>-V dumps to the screen and I can't grep or awk it.  I
>can't even dump snort -V to a file with "snort -V >
>file".
>
>Any suggestions on how to grab the version number as
>part of a command line function?
>
>Thanks,
>John
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.
>http://search.yahoo.com
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
>_______________________________________________
>Snort-users mailing list
>Snort-users at 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://www.geocrawler.com/redir-sf.php3?list=snort-users
>
>
>  
>

-- 
"The trouble with doing something right the first time 
 is that nobody appreciates how difficult it was."

-- Dale L. Handy, P.E.
   dhandy at ...2998...
   http://www.nitrodata.com






More information about the Snort-users mailing list