Re: I added usleep support to tail
Jim Meyering <[email protected]> Mon, 10 Mar 2003 08:58:50 +0100
| Newsgroups | gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Oliver Reiter <[email protected]> wrote: > I added support for sleeping fractional seconds to tail. > This is trivial but very useful, I hope it helps anyway. > Please consider adding this feature. > I put my patch under the GPL or LGPL, at your choice. > > The complete, changed tail.c is added as attachment. > Here is the diff to textutils-2.1: Thank you for the patch! However, newer versions of GNU tail can already sleep for fractional (floating point) seconds. -s, --sleep-interval=S with -f, sleep for approximately S seconds (default 1.0) between iterations. The latest test release is here: ftp://alpha.gnu.org/gnu/coreutils/coreutils-4.5.9.tar.bz2 (coreutils is the union of fileutils, textutils, and sh-utils)