From owner-freebsd-questions Wed May 20 11:53:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA26479 for freebsd-questions-outgoing; Wed, 20 May 1998 11:53:36 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from federation.addy.com (federation.addy.com [207.239.68.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA26297 for ; Wed, 20 May 1998 11:52:36 -0700 (PDT) (envelope-from fbsdlist@federation.addy.com) Received: from localhost (fbsdlist@localhost) by federation.addy.com (8.8.5/8.6.12) with SMTP id OAA17090 for ; Wed, 20 May 1998 14:52:22 -0400 (EDT) Date: Wed, 20 May 1998 14:52:22 -0400 (EDT) From: Cliff Addy To: questions@FreeBSD.ORG Subject: reading a web server log file Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to write a program that monitors an Apache log file. My question is: If I open the file and fseek to the end, is there any chance I'll end up in the middle of a logfile line because Apache was in the middle of writing a file? Or is that impossible? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message