Laurent CARON wrote: > Package: coreutils > Version: 5.2.1-2.1 > Severity: important
That would be a testing version uploaded on 2005-09-04 but should mostly be the same as the stable Sarge version. Not having 5.2.1-2.1 handy I tested using 5.2.1-2 from Sarge. > i use the following command to print my mail logs on my desktop. > ssh -t mailserver.domain.tld "tail -F /var/log/mail.log" | xrootconsole -geo > 210x51+0+512 -fn 6x10 -fg green --wrap Okay. > Having /var/log/mail.log a symlink to /var/log/mail/mail.log Did /var/log/mail.log become a symlink in Sid when I was not looking? What do these say? ssh mailserver.domain.tld tail --version ssh mailserver.domain.tld cat /etc/debian_version > When logrotate rotates the logs, tail does not try to reopen the file. I cannot recreate this behavior. Here is what I tried: mkdir /var/tmp/tail-test cd /var/tmp/tail-test touch real-foo ln -s real-foo foo ls -log total 0 lrwxrwxrwx 1 8 2006-04-23 11:13 foo -> real-foo -rw-r--r-- 1 0 2006-04-23 11:13 real-foo In another terminal I ran: tail -F /var/tmp/tail-test/foo In the first terminal I ran several occurrances of this: date -R >> real-foo savelog -t real-foo date -R >> real-foo savelog -t real-foo In the tail'ing terminal all worked as expected. tail -F /var/tmp/tail-test/foo Sun, 23 Apr 2006 11:21:23 -0600 tail: `/var/tmp/tail-test/foo' has been replaced; following end of new file Sun, 23 Apr 2006 11:21:31 -0600 tail: `/var/tmp/tail-test/foo' has been replaced; following end of new file ls -log total 24 lrwxrwxrwx 1 8 2006-04-23 11:13 foo -> real-foo -rw-r--r-- 1 0 2006-04-23 11:21 real-foo -rw-r--r-- 1 96 2006-04-23 11:21 real-foo.0 -rw-r--r-- 1 66 2006-04-23 11:21 real-foo.1.gz -rw-r--r-- 1 64 2006-04-23 11:21 real-foo.2.gz -rw-r--r-- 1 64 2006-04-23 11:21 real-foo.3.gz -rw-r--r-- 1 63 2006-04-23 11:14 real-foo.4.gz -rw-r--r-- 1 72 2006-04-23 11:14 real-foo.5.gz As you can see the tail command follows the file even after the target of the symlink is rotated. If I remove and recreate real-foo this is also detected. rm real-foo date -R >> real-foo rm real-foo date -R >> real-foo tail: cannot open `/var/tmp/tail-test/foo' for reading: No such file or directory tail: `/var/tmp/tail-test/foo' has appeared; following end of new file Sun, 23 Apr 2006 11:24:57 -0600 tail: `/var/tmp/tail-test/foo' has become inaccessible: No such file or directory Sun, 23 Apr 2006 11:25:05 -0600 Bob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]