Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!inesc!unl!unl!spa From: spa@fctunl.rccn.pt (Salvador Pinto Abreu) Newsgroups: comp.unix.ultrix Subject: Re: How to stop core files in / Message-ID: Date: 11 Jun 90 11:52:48 GMT References: <1650@vela.acs.oakland.edu> Sender: news@fctunl.rccn.pt (USENET News System) Organization: Universidade Nova de Lisboa -- Lisbon, Portugal Lines: 38 In-Reply-To: schemers@vela.acs.oakland.edu's message of 9 Jun 90 22:10:26 GMT In article <1650@vela.acs.oakland.edu> schemers@vela.acs.oakland.edu (Roland Schemers III) writes: > In article mikem+@andrew.cmu.edu (Michael Meyer) writes: > >The X server on my decstation 3100's has a nasty habit of crashing and > >dropping a LARGE core file in /. (*) I can live with the X server > >restarting itself, but I would prefer not to have my / filesystem filled > >up with the core file. > > > If you have root access try: > su > cp /dev/null /core > chmod 0 /core > That might stop it. By creating a empty core file owned by root and without > any write access to it the program that dumps core might not be able to > create a /core file. > Roland I'm not sure this would work, as the X server runs as root. However, you may do something along the lines of: % su # rm -f /core # ln -s /dev/null /core This doesn't prevent your program (X server?) from dumping core, however, the dump itself goes into a black hole (remember Decus BH: on RSX?) and won't bother you anymore. -- --- Salvador Pinto Abreu BITNET/Internet: spa@fctunl.rccn.pt +---------------------------------+ UUCP: spa@unl.uucp | Departamento de Informatica +----------------------------------+ | Universidade Nova de Lisboa 2825 Monte Caparica, PORTUGAL | +--------------------------------------------------------------------+