By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

C Core file in Unix

P: 51
Hi Experts,

Can you please help me regarding the following..

Suppose I have a cron job which executes 5 C programs of which 3 programs dumps the core, how do I find which program dumped the core?

Thanks in advance,
Chella
Aug 9 '07 #1
Share this Question
Share on Google+
3 Replies


Expert 10K+
P: 11,448
Hi Experts,

Can you please help me regarding the following..

Suppose I have a cron job which executes 5 C programs of which 3 programs dumps the core, how do I find which program dumped the core?

Thanks in advance,
Chella
I bet the exit status of the program(s) that dumped core on you won't be zero.
A little bash (csh?) script around those C programs would tell you the answer.

kind regards,

Jos
Aug 9 '07 #2

sicarie
Expert Mod 2.5K+
P: 4,677
Hi Experts,

Can you please help me regarding the following..

Suppose I have a cron job which executes 5 C programs of which 3 programs dumps the core, how do I find which program dumped the core?

Thanks in advance,
Chella
It seems to me like you are trying to tie together 3 core dumps with 3 programs, am I correct?

Why not run one of them, see what the core dump naming scheme is, then see how that compares to the three you already have - if they're based on timestamp, program name, or what...
Aug 9 '07 #3

P: 51
Thank You Experts

Regards
Chella
Aug 10 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.