I am trying to capture mysql traffic and pass those traffic to strings command as follows:
tcpdump -i any -s 0 -l -w - dst port 3306 | strings
This is working as expected and printing all mysql queries like
select * from mytables show databases
But when i am trying to redirect the output to a file, its not printing the output to
tcpdump -i any -s 0 -l -w - dst port 3306 | strings > /tmp/out
Can someone explain me the behaviour of above command and why it is not redirecting the output to file.