Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!sci34hub!gary From: gary@sci34hub.sci.com (Gary Heston) Subject: Re: Rotating the syslogs Message-ID: <1993Mar30.194840.5890@sci34hub.sci.com> Reply-To: gary@sci34hub.sci.com (Gary Heston) Organization: SCI Systems, Inc., Huntsville, Al. References: <1p77tt$rq3@usenet.INS.CWRU.Edu> Date: Tue, 30 Mar 1993 19:48:40 GMT Lines: 17 In article <1p77tt$rq3@usenet.INS.CWRU.Edu> david@jake.EEAP.CWRU.Edu (David Nerenberg) writes: >I am trying to rotate my syslogs from cron. The cron side of things >is fine. Fir example, I move messages to messages.OLD and touch a >new messages file. Don't. Copy messages to messages.OLD, then copy /dev/null into messages. This leaves the permissions, ownership, and inode number of the messages file intact; once copied, you can move messages.OLD any way you want without problems. -- Gary Heston SCI Systems, Inc. gary@sci34hub.sci.com site admin The Chairman of the Board and the CFO speak for SCI. I'm neither. Remember: A majority of the American people voted against *all* of the Presidential Candidates. How encouraging....