Tuesday, September 25, 2007

tip: tailing logs

You can call this command in Linux to watch a log file as it updates:


tail -f [path/to/filename]


This actually works with all text files.

If you're in Windows, there's no built in DOS command that does it. If you're using Aptana/RadRails, you can right click on the file you want to watch and it'll come out in the console window.

This will remove the hassle of opening and closing the logs whenever we want to see something.

No comments: