Scripts for core

Need to script to check if there is a core file , if so send a mail -s "There is a core file generated".
Who is Participating?
if [`find / -name "*.core"`]; then
    mail -s "There is a core file generated" root\@localhost
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.