M
|MKSM|
Hello,
I'm working on a logparser and i've run into some issues. It will
parse OpenBSD PF logs. They are tcpdump format logs and BSD normally
compress them.
Here is the usage I have in mind:
"gzip -cd log.gz | ruby logparser.rb --today"
I have the following code:
Open3.popen3("/usr/sbin/tcpdump -nettr -") { |in_io, out_io, err_io|
=09in_io.write($stdin.read)
=09in_io.close
=09$log =3D out_io.read
}
The script freezes on the open3 line and doesn't continue. I've tested
several other methods but it doesn't seem to work.
Any suggestions on how this can be done?
Regards,
Ricardo.
I'm working on a logparser and i've run into some issues. It will
parse OpenBSD PF logs. They are tcpdump format logs and BSD normally
compress them.
Here is the usage I have in mind:
"gzip -cd log.gz | ruby logparser.rb --today"
I have the following code:
Open3.popen3("/usr/sbin/tcpdump -nettr -") { |in_io, out_io, err_io|
=09in_io.write($stdin.read)
=09in_io.close
=09$log =3D out_io.read
}
The script freezes on the open3 line and doesn't continue. I've tested
several other methods but it doesn't seem to work.
Any suggestions on how this can be done?
Regards,
Ricardo.