Hi,
I often find that I need to tail the most recent logfile in my qmail log
directory ie /var/log/qmail.
At the moment, I just look for the most recent file and use (for
example):
$ tail -f /var/log/qmail/\@00000926439774 | tailocal
However, those file names are a bit of a 'mare to type accurately. bash
filename completion helps a little but is not really a satisfactory
solution.
Before I do a bit of coding, has anyone written a script to identify the
most recent log file and tail it, preferably switching files when the
log file turns over?
Ta,
R.
--
Robin Bowes - System Development Manager - Room 405A
E.O.C., Overseas House, Quay St., Manchester, M3 3HN, UK.
Tel: +44 161 838 8321 Fax: +44 161 835 1657