zsh-users
 help / color / mirror / code / Atom feed
* rolling over high-traffic logfiles?
@ 1998-07-16  3:49 Sweth Chandramouli
  1998-07-16  5:08 ` Bart Schaefer
  1998-07-16 13:45 ` Duncan Sinclair
  0 siblings, 2 replies; 10+ messages in thread
From: Sweth Chandramouli @ 1998-07-16  3:49 UTC (permalink / raw)
  To: ZSH Users

	is there some easy way to roll over high-traffic logfiles
in zsh, without losing any possible incoming data?  i have a machine,
for example, that receives syslog reports from many other machines on
a network, which syslog.conf puts into the file /var/adm/extlog.  for
similar such files, i have a crontab entry that simply copies the log
file to the file "log.`date`", and then copies /dev/null over the current
logfile.  this syslog file, however, is almost constatnly being updated.
in the ideal world, i'd like to not have to worry about one or two
entries getting added (and thus lost) to /var/adm/extlog in the time
between when /var/adm/extlog.`date` is created and /dev/null gets
copied over /var/adm/extlog.  can zsh do some sort of file locking here?
if not, does anyone have any other ideas on how to not lose and log entires?

	tia,
	sweth.

-- 
Sweth Chandramouli
IS Coordinator, The George Washington University
<sweth@gwu.edu> / (202) 994 - 8521 (V) / (202) 994 - 0458 (F)
<a href="http://astaroth.nit.gwu.edu/~sweth/disc.html">*</a>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1998-07-24 23:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-16  3:49 rolling over high-traffic logfiles? Sweth Chandramouli
1998-07-16  5:08 ` Bart Schaefer
1998-07-16  8:36   ` Zefram
1998-07-16 12:46   ` Brian Harvell
1998-07-16 15:26     ` Bart Schaefer
1998-07-16 16:14       ` Zefram
1998-07-16 16:41         ` Nitin P Garg
1998-07-17  7:36           ` Jos Backus
1998-07-24 23:42       ` Todd Graham Lewis
1998-07-16 13:45 ` Duncan Sinclair

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).