- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Where can I place ulimit -c 0?
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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-19-2000 11:30 AM
тАО10-19-2000 11:30 AM
Where can I place ulimit -c 0?
I'm having trouble placing this command in the proper place currently, as the applications that create the core files are started from remote processes, whose parents are removed post-startup.
I was also wondering if this is a bourne or ksh only statement, as the applications that we are starting are done through csh?
Thanks in advance,
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 11:33 AM
тАО10-19-2000 11:33 AM
Re: Where can I place ulimit -c 0?
But, I'm still wondering which file(s) I can place this in so it is applied system-wide.
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 11:42 AM
тАО10-19-2000 11:42 AM
Re: Where can I place ulimit -c 0?
For the csh it's 'limit'. For the Posix shell it's 'ulimit'. See man 'sh-posix'.
One easy solution is to create a file in your directory called 'core' that allows only read access to all users. Do:
# touch core
# chmod 444 core
Now when a program aborts that would create a core file in that directory it will not create the file because it cannot overwrite the existing one.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 11:45 AM
тАО10-19-2000 11:45 AM
Re: Where can I place ulimit -c 0?
fop system wide setting edit:
/etc/csh.login # for C shell
/etc/profile # for bourne/posix/korn shell
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2000 07:30 AM
тАО10-21-2000 07:30 AM
Re: Where can I place ulimit -c 0?
if [ "$0" = "-sh" ]
then
ulimit -c 0
fi
You may have to expand this for other shells that recognize ulimit. The ulimit value extends to the environment of processes started by the parent, even if the parent disappears.
ulimit is a shell built-in to the setrlimit system call, so processes can make this change too.
Bill Hassell, sysadmin