[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Scripts for core

Posted on 2011-05-10
1
Medium Priority
?
213 Views
Last Modified: 2012-05-11
Need to script to check if there is a core file , if so send a mail -s "There is a core file generated".
0
Comment
Question by:ratna1234
1 Comment
 
LVL 14

Accepted Solution

by:
svgmuc earned 2000 total points
ID: 35728652
if [`find / -name "*.core"`]; then
    mail -s "There is a core file generated" root\@localhost
fi
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

This Windows batch file is useful for organizing image files from a digital camera or other source, but can have many other uses.  It simply renames the file(s) to match their create date.  For example, if you took a picture today at 1:40pm and the …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month17 days, 14 hours left to enroll

831 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