Skip Navigational Links
LISTSERV email list manager
LISTSERV - COMMUNITY.EMAILOGY.COM
LISTSERV Menu
Log In
Log In
LISTSERV 17.5 Help - LSTSRV-L Archives
LISTSERV Archives
LISTSERV Archives
Search Archives
Search Archives
Register
Register
Log In
Log In

LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Menu
LISTSERV Archives LISTSERV Archives
LSTSRV-L Home LSTSRV-L Home

Log In Log In
Register Register

Subscribe or Unsubscribe Subscribe or Unsubscribe

Search Archives Search Archives
Options: Use Forum View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
Re: viewing the listserv.log and an event occurs
From:
David Phillips <[log in to unmask]>
Reply To:
LISTSERV site administrators' forum <[log in to unmask]>
Date:
Mon, 12 Feb 2007 22:09:51 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
On 2/12/07, Stan Horwitz <[log in to unmask]> wrote:
> On Feb 12, 2007, at 10:03 PM, Patrick B. O'Brien wrote:
>
> > Let's say I'm vi'ing (viewig) my /home/listserv/listsev.log file.
> >
> > And an event occurs.
> >
> > Will that event get written to the *.log file when I exit out of
> > the log
> > file?
>
> You shouldn't edit an active log file. Instead, either more it or
> tail it. If you "tail -f" a log file, you will see it update before
> your eyes.

As Stan said, you shouldn't edit an active log.  However, if you use
the readonly version of vi, or any other 'reader' of a file, you won't
affect what's going into the file. On a Unix or Unix style system, a
read of a file opens up a new file handle, and your process gets a
copy of that handle.  The writing process has a different handle, and
continues to write.  Anything that happens while you're reading the
file will get written to the log, but you won't see it in your read
process.  At least, that's how I remember it.



-- 
David Phillips
Molon Labe !
leaving the vicinity of  35° 46' N , 78° 48'W
towards 36° 08' 47" N , 80° 19' 23" W in March, sort of.
Lose Not A Minute!

ATOM RSS1 RSS2

COMMUNITY.EMAILOGY.COM CataList Email List Search Powered by LISTSERV