Re: [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
- Date: Mon, 7 Jan 2008 16:33:53 +0100 (CET)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Monday 2008-01-07 at 16:12 +0200, Mark Goldstein wrote:
Sure, I just gave one example where I thought "tail" was good enough
and provided quick solution (not "quick and dirty"). I have to admit,
I did not use "File::Tail" from pure ignorance and laziness :-). I'll
definitely look into it next time I'll need to to something of this
sort.
If you go the "tail -f" way, then you'd better use "tailf" instead. Its a different program that doesn't cause unnecesary disk activity.
DESCRIPTION
tailf will print out the last 10 lines of a file and then wait for
the file to grow. It is similar to tail -f but does not access the
file when it is not growing. This has the side effect of not
updating the access time for the file, so a filesystem flush does
not occur periodically when no log activity is happening.
tailf is extremely useful for monitoring log files on a laptop when
logging is infrequent and the user desires that the hard disk spin
down to conserve battery life.
- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
iD8DBQFHgkZjtTMYHG2NR9URAsrvAJ0Sv2cUijoQVbb7p4mbij4W9MNL7ACgik+A
s5uV9JrETNOBODlMGG2nTS4=
=UJsx
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- References:
- [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- From: Marcin Floryan
- Re: [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- From: G T Smith
- Re: [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- From: Mark Goldstein
- Re: [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- From: G T Smith
- Re: [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- From: Mark Goldstein
- [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- Prev by Date: Re: [opensuse] odd /usr/bin thing
- Next by Date: Re: [opensuse] howto make usb drive stop
- Previous by thread: Re: [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- Next by thread: Re: [opensuse] logsanalysis: (tail -f) vs (perl File::Tail)
- Index(es):