- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can core files be made to write to a specific ...
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
09-14-2005 07:08 AM
09-14-2005 07:08 AM
Can core files be made to write to a specific directory?
echo "core_addpid/W 1\ncore_addpid?W 1" | adb -w -k /stand/vmunix /dev/mem;;
Is there a way to have all the core_NNNNN files write to a particular directory or it always need to write in the account's home directory or whereever the executable was called?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 07:16 AM
09-14-2005 07:16 AM
Re: Can core files be made to write to a specific directory?
Not as far as I know. My understanding is core s dump in which ever directory the process is running.
I'd be interested in hearing something different...
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 07:23 AM
09-14-2005 07:23 AM
Re: Can core files be made to write to a specific directory?
The ability to add the 'pid' of the dumping process is designed to help this issue.
Beyond that, about all I think you can currently do is create symbolic links from/to the directories you want. That is, if you want processes run in /usr to redirect their core files to /var/tmp (for example) then:
# cd /usr
# ln -s /var/tmp core
I tested this and it works just fine.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 07:27 AM
09-14-2005 07:27 AM
Re: Can core files be made to write to a specific directory?
ulimit -Sc 0
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 07:29 AM
09-14-2005 07:29 AM
Re: Can core files be made to write to a specific directory?
They want to keep core files to trace bugs, etc...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 07:37 AM
09-14-2005 07:37 AM
Re: Can core files be made to write to a specific directory?
Yes, the symbolic link versus the use of an appended pid is an "either-or" choice.
Personally, I prefer the pid-suffix. It will retain files for later purusal in the case there are multiple events. You can (of course) then search for the files with something like this:
# find / -mtime +0 -type f \( -name "core" -o -name "core.[0-9][0-9]*" \)
The above keeps you from tripping on things like:
/usr/share/man/man4.Z/core.4
...which you obviously don't want to find and remove.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 07:46 AM
09-14-2005 07:46 AM
Re: Can core files be made to write to a specific directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 08:08 PM
09-14-2005 08:08 PM
Re: Can core files be made to write to a specific directory?
Only inconvenience is that the cronlog is written full with entries of this job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 08:25 PM
09-14-2005 08:25 PM
Re: Can core files be made to write to a specific directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 08:42 PM
09-14-2005 08:42 PM