- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- core file
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
12-03-2001 06:58 AM
12-03-2001 06:58 AM
core file
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 07:04 AM
12-03-2001 07:04 AM
Re: core file
The location is dependent on the process that generates the core. So, it is not a hard and fast rule that the core is always in /. Your solutions works if you don't want any core to stay in /.
You can do like this
#ln -s /file_system/core /core
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 07:07 AM
12-03-2001 07:07 AM
Re: core file
In most scripts (those you "submit" from crontab for example) you can simply do this
by putting an cd /to_directory_where_you_want
in front of the "essential" command ...
For example
#!/usr/bin/sh
cd /opt/tivoli
/opt/tivoli/tsm/client/ba/bin/dsmc ...
A coredump from dsmc would then be in /opt/tivoli ...
Regards,
Tom Geudens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 07:10 AM
12-03-2001 07:10 AM
Re: core file
Identify the directory where core file normaly genarates and then have a symbolic link to that perticular directory
This way no corefiles left around hogging disk space.
eg. ln -s /coredirectory /tmp/core
Also if you want to limit the size of the core use ulimit
In .profile file add ulimit -c 0
This works for posix shell
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 07:13 AM
12-03-2001 07:13 AM
Re: core file
If you don't need the 'core' file, why don't you just
ulimit -c 0
which will set the limit size of the core file to 0 -> it won't take any disk space ;)
ulimit -a
will show you the current settings.
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 07:36 AM
12-03-2001 07:36 AM
Re: core file
Thanks for the info to all...
Uday, if th core file is generated in / surelly I cant just to a link from /?? Sorry, my HP-UX knowledge is very limited:-)
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 08:15 AM
12-03-2001 08:15 AM
Re: core file
As others have indicated, you are nearly right concerning the link. A hard link won't work because it must be in the same filesystem. Use a symbolic (soft) link to get around that.
As info, core files are re-used. That is to say, the inode number is not changed when a process overwrites a core file. That is true of the regular file "core" whether it is referenced by a symlink or not.
You are also correct that you can't have / as a symlink. However, you can have /core as a symlink.
If uncertain what process is creating the core file, do what core.
Darrell