On 31 March 2011 12:14, Richard Parsons richard.lee.parsons@gmail.com wrote:
On Thu, Mar 31, 2011 at 10:10:58AM +0100, Mark Rogers wrote:
On 31/03/11 09:10, Richard Parsons wrote:
Wouldn't the "something" be netcat and tee. I googled and came up with these:
http://smaftoul.wordpress.com/2009/05/13/netcat-as-a-logging-tcp-proxy/ http://blog.hawkhost.com/2009/12/12/using-netcat-as-an-intercepting-proxy/
The problem with these approaches is (as I understand them) I end up with two files (an incoming and an outgoing) with no way to "merge" them to see the sequence of the conversation?
Couldn't you just use the same filename for both tee commands? You could even echo something before each one so you knew which were in-bound and which were out-bound. Am I missing something?
How could you echo a marker in both incoming and outgoing case each time the data arrived? And what about timing of the data? Would you not want each incoming and outgoing data to have a timestamp so you can: - play it back in the correct sequence / order / speed - calculate delays
Srdjan