This is my scripts.the scripts checks whether my database is up or not if it is up then its ok if not , then the alert should be send to my groups mail id.
Code:
DBALIST="[email protected]";export DBALIST #DBA_LIST="[email protected]";export DBALIST rm listener ps -ef|grep pmon >listener if [ $# -ne 0 ] #if cat listener|grep PROD then