- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- redirect 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
09-12-2003 05:33 AM
09-12-2003 05:33 AM
redirect core file
I would like to know how I can redirect a core file ??
In fact a huge core is generated under a folder that is too small... I want to generate it under an another folder...
I've tried to do a ln -s /other_folder core
but the core is not generated in this case..
Have you got some ideas ??
Regards,
Jean-Remi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 05:36 AM
09-12-2003 05:36 AM
Re: redirect core file
How about linking it to /dev/null.
# ln -s /dev/null core
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 05:38 AM
09-12-2003 05:38 AM
Re: redirect core file
ln -s /dev/null core.
ln -s /other_file core.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 05:39 AM
09-12-2003 05:39 AM
Re: redirect core file
then you can create a subdirectory in the directory where the core files show up and call it "core" then there will be no core created at all.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 05:40 AM
09-12-2003 05:40 AM
Re: redirect core file
# limit
cputime 0:0-1
filesize 4194303 kbytes
datasize 262144 kbytes
stacksize 8192 kbytes
coredumpsize 2097151 kbytes
memoryuse 4194303 kbytes
descriptors 60
#
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 05:44 AM
09-12-2003 05:44 AM
Re: redirect core file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 05:47 AM
09-12-2003 05:47 AM
Re: redirect core file
Core files are created in the process present working directory, so you have two options:
1) Move to a larger dir before starting the process:
cd /other/larger/dir
/path/to_your/process
2) Explicitly set the $PWD var before starting
export PWD=/other/larger/dir
/path/to_your/process
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 05:56 AM
09-12-2003 05:56 AM
Re: redirect core file
I've tried the command:
[HP-UX]:/tmp>ln -s /folder core
[HP-UX]:/tmp> ll
core -> ./folder
core_cprog.c
core_prog
But the core is not generated at all.
I need this entire core to analyse it and I need to redirect it in an another folder...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 06:05 AM
09-12-2003 06:05 AM
Re: redirect core file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 06:11 AM
09-12-2003 06:11 AM
Re: redirect core file
You should have tried "ln -s /foder/core core"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 06:51 AM
09-12-2003 06:51 AM
Re: redirect core file
ln -s /folder/core core
it works properly.
Thank you all,
Jean-R??mi.