Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: Clearing /var/adm/messages, how?
  1998-09-17  4:00 Clearing /var/adm/messages, how? Pui Ming WONG
@ 1998-09-17  4:00 ` Nikola Milutinovic
  1998-09-19  4:00 ` srlnrow
  1 sibling, 0 replies; 3+ messages in thread
From: Nikola Milutinovic @ 1998-09-17  4:00 UTC (permalink / raw)


Pui Ming WONG wrote:
> 
> I've found that there's a file called 'messages' under the /var/adm
> subdirectory of our DGunix system.
> It's very large. How do i clean it so that old messages will be
> cleared and new ones will be stored anew.

# sed '1,10000D' messages > msg.new
# mv msg.new messages

Repeat Until happy==True

Nix.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Clearing /var/adm/messages, how?
@ 1998-09-17  4:00 Pui Ming WONG
  1998-09-17  4:00 ` Nikola Milutinovic
  1998-09-19  4:00 ` srlnrow
  0 siblings, 2 replies; 3+ messages in thread
From: Pui Ming WONG @ 1998-09-17  4:00 UTC (permalink / raw)


I've found that there's a file called 'messages' under the /var/adm
subdirectory of our DGunix system.
It's very large. How do i clean it so that old messages will be
cleared and new ones will be stored anew.
(I know the nulladm command, but only knows it's used for
wtmp and utmp, can this command be used similarly ?) 
--
        __
   / \_/  )             __   Pui Ming WONG (E-mail: pm@hkbu.edu.hk) 
  /      ( -------------  }  System Support Programmer
 (  =l=ll===============__}  Computing & Telecomm. Services Centre
  \   _  (                   Hong Kong Baptist University 
   \_/ \__)                  224 Waterloo Road, Hong Kong 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Clearing /var/adm/messages, how?
  1998-09-17  4:00 Clearing /var/adm/messages, how? Pui Ming WONG
  1998-09-17  4:00 ` Nikola Milutinovic
@ 1998-09-19  4:00 ` srlnrow
  1 sibling, 0 replies; 3+ messages in thread
From: srlnrow @ 1998-09-19  4:00 UTC (permalink / raw)


In Article <6tqf3o$ava$1@power42t.hkbu.edu.hk>
s11976@net2.hkbu.edu.hk (Pui Ming WONG) writes:
>I've found that there's a file called 'messages' under the /var/adm
>subdirectory of our DGunix system.
>It's very large. How do i clean it so that old messages will be
>cleared and new ones will be stored anew.

# cp /dev/null /var/adm/messages

-- 
Roger Williams, Institute of Geological & Nuclear Sciences, New Zealand
R.Williams
@gns.cri.nz : DEC 3000/300 AXP - OpenVMS v6.2



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-09-19  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-17  4:00 Clearing /var/adm/messages, how? Pui Ming WONG
1998-09-17  4:00 ` Nikola Milutinovic
1998-09-19  4:00 ` srlnrow

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