|
You can create a shell script and test to see if it executes without error. If it executes without error, then you can email a success message; if with error, you can email an error message.
Take a look at error codes, for example:
ps aux | grep grep | grep -v grep ; echo $?
Then try:
ps aux | grep grep; echo $?
Are the results the same? Why not?
|