cisco / mercury

Mercury: network metadata capture and analysis
Other
430 stars 75 forks source link

added support for ./pmercury in osx using gzcat instead of zcat #6

Closed ToryQuinn closed 4 years ago

ToryQuinn commented 4 years ago

Made some minor changes to allow using ./pmercury script on OSX using gzcat instead of zcat since zcat distributed with OSX differs from the linux versions.

Changes are something like:

cmd = 'gzcat' if sys.platform == 'darwin' else 'zcat' for line in os.popen(cmd + ' %s' % (imp_date_cs_file)):

Only tested on OSX Mojave 10.14.6

banderson84 commented 4 years ago

This looks good; thanks for testing on OSX and committing the fixes!