Path: utzoo!utgpu!cunews!cognos!jimp From: jimp@cognos.UUCP (Jim Patterson) Newsgroups: comp.sys.hp Subject: Re: Limiting the size of corefiles Message-ID: <8932@cognos.UUCP> Date: 17 Oct 90 14:23:34 GMT References: <1990Oct15.171543.9516@ra.src.umd.edu> <4840@baird.cs.strath.ac.uk> Reply-To: jimp@cognos.UUCP (Jim Patterson) Organization: Cognos Inc., Ottawa, Canada Lines: 29 In article <4840@baird.cs.strath.ac.uk> al@cs.strath.ac.uk (Alan Lorimer) writes: >In article <1990Oct15.171543.9516@ra.src.umd.edu> preetham@ra.src.umd.edu writes: >> >>How does one suppress generation of a corefile (other than writing perfect >>programs of course) ?????? > >How about: > > ls -s /dev/null core > >To automatically `bin' them. This appears as if it will work, but I'll bet it will still take a bit of time to 'bin' then when a large program bombs. It might be better to create a core file and change permissions so you can't write to it, forcing a write error when the core dump is attempted, as in touch core chmod a-rw core This work for me, and instead of saying Bus error (core dumped) HP-UX just says Bus error -- Jim Patterson Cognos Incorporated UUCP:uunet!mitel!cunews!cognos!jimp P.O. BOX 9707 PHONE:(613)738-1440 3755 Riverside Drive NOT a Jays fan (not even a fan) Ottawa, Ont K1G 3Z4