Tailing a log file and Running an Application at the Same Time
A quick tip this, but a useful one. You can tail a log file in the background while running a script in the foreground. So for example, I frequently execute the following commands: 1. tail -f /var/log/httpd.log & /etc/init.d/apache restart 2. (The log file will spool onto the terminal as Apache is restarted.) 3. Once you are finished viewing the log file, foreground the log file process and kill it: fg Then terminate the foregrounded log tail with a control-c. ...