From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,ac9e2a0f17d13140 X-Google-Attributes: gidf678f,public From: Jesper Frank Nemholt Subject: Re: vdump of root ..et al Date: 2000/02/12 Message-ID: <38A54010.B4FE207C@dassic.com>#1/1 X-Deja-AN: 585048621 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en,da,en-US Content-Type: text/plain; charset=us-ascii X-Complaints-To: Department of Written Abuse X-Trace: news.inet.tele.dk 950382052 20445 195.249.165.46 Organization: Dassic Mime-Version: 1.0 Newsgroups: comp.unix.osf.misc HuBrIs wrote: > [clip] > 3) resetting binary errlog: About once a month I: > >cd /var/adm > > mv binary.errlog old_binary.errlog > > touch binary.errlog > > I know there's a better procedure, I'm afraid of > stopping the log daemon. > Does anyone know how to force a trivial message to go > to this daemon to test the log file? Instead of touching a new binary.errlog, do a kill -HUP on the binlogd process ID. Then it'll create a new file itself. To log a entry in the file do a : logger -b "This is a test" This will create a entry in the binary.errlog. If you do a uerf or dia afterwords you should be able to see it. > > 4) bonus question: I need to get "yesterday's" date for ksh scripts.... any > ideas? date --date '1 day ago' or date --date '-24 hours' or date --date '-1 day' I don't remember using it on Digital Unix, but it works on Linux. l8r/Jspr