Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: Jesper Frank Nemholt <jfn@dassic.com>
Subject: Re: vdump of root ..et al
Date: 2000/02/12	[thread overview]
Message-ID: <38A54010.B4FE207C@dassic.com> (raw)
In-Reply-To: wgWo4.3552$yt2.94307@nnrp3-w.snfc21.pbi.net

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



  reply	other threads:[~2000-02-12  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-11  5:00 vdump of root ..et al HuBrIs
2000-02-12  5:00 ` Jesper Frank Nemholt [this message]
2000-02-14  5:00   ` John Sheldrake
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox