Shell script to send email alert for core dump

Friends,

I am in search for a shell script that is capable of running as a cronjob and have to send out an email when ever there is a CORE DUMP.

Please post the hints to achieve my goal.

Thanks in advance.

I don't particularly suggest doing it this way due to how find is I/O and CPU intensive, but you could always do something like

if [[ -n $(find / -name core) ]]; then echo "core file found" | mail root; fi

  • John