- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting application CORE output to zero size??
Operating System - HP-UX
1753809
Members
8539
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2000 07:49 AM
тАО10-13-2000 07:49 AM
I was wondering if anyone knew have to force the size of an application core file to size zero? If I remember correctly, there is a way to have the OS cause the core file to be created with a zero size. This is NOT the SAVECORE option, which reduces the size of kernel corefiles.
For some reason, I want to say that it was a variable that could be set in either the .cshrc or equivalent startup file.
Thanks in advance,
Doug
For some reason, I want to say that it was a variable that could be set in either the .cshrc or equivalent startup file.
Thanks in advance,
Doug
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2000 07:58 AM
тАО10-13-2000 07:58 AM
Re: Setting application CORE output to zero size??
Hi,
One way is to create a zero-sized 'core' file with read-only permissions. This prevents core dumps from being written in a particular directory.
Regards,
John
One way is to create a zero-sized 'core' file with read-only permissions. This prevents core dumps from being written in a particular directory.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2000 08:09 AM
тАО10-13-2000 08:09 AM
Solution
To completely suppress core dumps:
Bourne-style shells: "ulimit -c 0"
C-style shells: "limit coredumpsize 0"
If you want to limit dumps to a specific size, specify
a number instead of 0, in blocks for Bourne-style
shells, or kilobytes for C-style shells.
If you use a shell without specific command as per above :
In the working directory :
touch core ; chmod 000 core
Bourne-style shells: "ulimit -c 0"
C-style shells: "limit coredumpsize 0"
If you want to limit dumps to a specific size, specify
a number instead of 0, in blocks for Bourne-style
shells, or kilobytes for C-style shells.
If you use a shell without specific command as per above :
In the working directory :
touch core ; chmod 000 core
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2000 08:14 AM
тАО10-13-2000 08:14 AM
Re: Setting application CORE output to zero size??
Hi again,
The other way is to use 'ulimit -c 0'
See man sh-posix for details.
Regards,
John
The other way is to use 'ulimit -c 0'
See man sh-posix for details.
Regards,
John
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP