Hi Experts,
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.
The scripts is ok the problem is mailx command i think whenever i run the script i am getting an error:
the error i have pasted below
could you guys help me out...
thanks,
Daniesh
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="daniesh.shaikh@idhasoft.com";export DBALIST #DBA_LIST="daniesh.shaikh@idhasoft.com";export DBALIST rm listener ps -ef|grep pmon >listener if [ $# -ne 0 ] #if cat listener|grep PROD then echo "listener is up" else echo "listener is down" | mailx -s $DBALIST fi
the error i have pasted below
Code:
[oracle@lxorarac1 ~]$ ./listener1 You must specify direct recipients with -s, -c, or -b.
thanks,
Daniesh
Comment