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!