My phone is occasionally having some trouble on my home network, and I'm trying to get a feel for what's happening as it goes in and out of my firewall.
I can run this command and watch the traffic in real time:
Code: Select all
tail -f /var/log/syslog | grep "<phone-ip>"
What I want to do is pipe that into a text file so that I can let it go for a few hours, and go over it later.
This is the command I'm running:
Code: Select all
tail -f /var/log/syslog | grep "<phone-ip>" > phone.log
I'm clearly doing something wrong though, because all this produces is a blank phone.log.
Any idea what I'm doing wrong here?
Thanks!