- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Enable monitor core files processes of other u...
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
Forums
Discussions
Discussions
Discussions
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
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
05-24-2005 06:28 AM
05-24-2005 06:28 AM
Enable monitor core files processes of other users
I have these scripts belonging to a user, e.g user1. Basically it scans the system for user1's core files and prints a summary report.
How can i get it to scan for other user core & processes and possibly delete them after a certain period.......user1 has no root privileges....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 06:37 AM
05-24-2005 06:37 AM
Re: Enable monitor core files processes of other users
Attach the script. Also the default permission of core files is perhaps -rw------- . This cause the core file for a user to be deleted by only that user and nobody else. So a better way will be to run that script after modification from the user for which you want to remove core files.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 06:47 AM
05-24-2005 06:47 AM
Re: Enable monitor core files processes of other users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 07:08 AM
05-24-2005 07:08 AM
Re: Enable monitor core files processes of other users
Thanks both for your response, I have attached the script.....maybe u'd be able to explain it even better 2 me as it was inherited......and am no script whiz.....
I wont want to set up a sudo to the account as a couple of users have access to the account.......
also a great idea to set cronjob as root to deal with this.....any tips based on the attached script please?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 08:01 AM
05-24-2005 08:01 AM
Re: Enable monitor core files processes of other users
The attached script doesn't look like it has anything to do with removing core files.
If you have a system where noone is ever going to analyze core files, then you should look into preventing them from being created, rather than cleaning up after the fact. Take a look at the ulimit command and the options related to limiting the sizes of core files. Then find a good place near the end of /etc/profile to put the appropriate ulimit command. Note that this doesn't prevent users from running ulimit within their own shells to change the parameter, but it's a much simpler solution that takes care of the majority of the problem.
--Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 08:34 AM
05-24-2005 08:34 AM
Re: Enable monitor core files processes of other users
you include the following line in roots crontab file...
0 12 * * * find / -name core -exec rm {} \;
This entry would delete core files in the entire sysem everyday at 12 noon.
make sure u wouldn't want any core files to be analysed on this system. Because it is not advisable to delete all the core files, as it might be needed sometimes by HP to analyse the issue using the core files. Please be aware that the above entry would also delete any file that was named "core" ..that means even a user created genuine files named "core".
In case if u wanna add please use "crontab -e" to add the entry to roots crontab.
If i were you i wouldn't use it before giving a second thought..
Though Gregs suggestion sounds more logical, but wan't able to check the options for "ulimit".. would try getting one...
Regards