Solved

finding which core file is generated due to system utility crash

Posted on 2004-04-05
9
223 Views
Last Modified: 2013-12-26
I want to find out the all the core files in my unix system that are generated by the system utilities.

now i know how to find the files with name 'core'. but how to find the file that are specifically the result of some system util crash.

thanx in advance
eshtiaq.
0
Comment
Question by:eshtiaq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 21

Expert Comment

by:tfewster
ID: 10763584
core files are owned by the user who was running the process, so `find / -name core  -user root  -print`  might give you what you need
0
 
LVL 1

Accepted Solution

by:
while_true earned 25 total points
ID: 10763826
the command:
file core
will give you the name of the process which was crashed (on most unix/linux platforms)
0
 
LVL 12

Assisted Solution

by:stefan73
stefan73 earned 25 total points
ID: 10764251
Hi while_true,
combine both:

find / name core -follow -local | xargs file

(-local avoids looping into NFS mounts)

Cheers,
Stefan
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:while_true
ID: 10764330
Hi Stefan,

that's exactly what I wanted to propose (but didn't articulate)

Greetings
Rainer
0
 

Author Comment

by:eshtiaq
ID: 10765279
Its all gr8 but how m i going to know that this file is generated by a system util or not. a system util like cat can be invoked by any user. if cat is crashed a core file is generated. how to identify that file.

thanx guys
eshtiaq
0
 
LVL 1

Expert Comment

by:while_true
ID: 10765454
It's like it is described in the comments above:
You can find a core file and you can examine it with the command 'file'. This will give you a printout like

./core: core dump, generated from 'cat'

and the ownership of the file 'core' gives you the user name which was executing 'cat' when it crashed.

BTW, system utils are normally not crashing that much. Why do you need to identify core files produced by crashed system commands ?
0
 
LVL 12

Expert Comment

by:stefan73
ID: 10765848
while_true,
> ./core: core dump, generated from 'cat'

Yes, file is basically reading out argv[0] of a core file.

Stefan
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get filename and folder into excel 7 87
how do i create updater to My Activex application? 3 108
java ^ examples 8 74
Making an alias 7 121
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question