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".
ratna1234Asked:
Who is Participating?
 
svgmucCommented:
if [`find / -name "*.core"`]; then
    mail -s "There is a core file generated" root\@localhost
fi
0
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.