DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th May 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Thanked 3 Times in 3 Posts
Default How total remove .core file during a dump?

On OpenBSD 5.1 using xxxterm 1.10 (but even on Linux) i noticed that xxxterm is a lot unstale (but that don't happen on OpenBSD 5 using a more older release) so very often i obtain a big core file (>512Mb) on my home partition.
How can avoid that every time is produced a .core file?
I don't want it and i don't need it.
If possible i would like avoid the production of a .core files from every type of programs.

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 19th May 2012
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 572
Thanked 14 Times in 13 Posts
Default

Check your shell's man page for a built-in command called ulimit and the -c flag.

(Edited to turn right idea into something more accurate.)

Last edited by IdOp; 19th May 2012 at 08:51 PM.
Reply With Quote
  #3   (View Single Post)  
Old 19th May 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,802
Thanked 214 Times in 189 Posts
Default

Another way might be to execute the program from a working directory where the user has no write access. See the core(5) man page, first paragraph.
Reply With Quote
  #4   (View Single Post)  
Old 20th May 2012
Alphalutra1 Alphalutra1 is offline
Port Guard
 
Join Date: Sep 2008
Posts: 29
Thanked 0 Times in 0 Posts
Default

Code:
ulimit -c 0
in your ~/.profile should do the trick. Beware, this will turn off any programs you initiate as that user from dumping core;
Reply With Quote
Reply

Tags
core dump, core files, xxxterm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Core dump and implications on the size of the partitions /var and swap aleunix OpenBSD Installation and Upgrading 4 1st March 2012 05:19 PM
Total Success divadgnol67 OpenBSD General 0 6th August 2009 07:15 PM
how can I get a core file out of this program TerryP FreeBSD General 4 25th February 2009 07:28 AM
mc core dump in root sheriff26 FreeBSD General 4 21st June 2008 07:56 PM
Interface - total bandwidth centerstage OpenBSD General 11 18th June 2008 11:20 PM


All times are GMT. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick