Continuous Tail Script

Chip

This is my continuous tail script. It's good to have running on another screen while you are working on PHP code. You can ct the apache error_log and watch the log as the page is accessed. Streamlines the whole debugging thing.

#/bin/sh
if [[ "$1" == "" ]]
then
echo "Continuous Tail Script (50 Lines, 5s Interval). Tim 10/09/2007"
echo "Usage: ct [file]"
else
clear
tail -n 50 -s 5 -f $1
fi

Next entry

Previous entry

Similar entries