[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 >
>Any suggestions on how to grab the version number as
>part of a command line function?
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.
>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.
>Snort-users mailing list
>Snort-users at lists.sourceforge.net
>Go to this URL to change user options or unsubscribe:
>Snort-users list archive:

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

More information about the Snort-users mailing list