Urgent - Please help.
I am tryiing to write a script to send an email to Lotus notes from the AIX UNIX.
I am not sure about the syntax. Please help. I don't know where I have been doing wrong. When I try to run this script, I am getting "Cannot execute" error. Please help.
Herewith I have given the code. There are 5 engine servers. If all 5 are avialble it will be valid. If it is between 3 and 5 should send an email. If it is below three(that is 2 or 1) then abend.
print '*************************
**********
**********
*'
print There are $CNT engine servers currently active
print '*************************
**********
**********
*'
if [ $CNT -eq 5 ]
then
print '**VALID**'
elif [ $CNT -gt 3 -lt 5 ]
then
/usr/bin/mail -s "TTGPD001 failed" -c "amrutha_ravikumar@psnsmtp
in.psdma.p
ayless.com
"
"hpc-mail@psamailc.payless
shoesource
.com" </scripts/ttgpd001_error_m
sg
else
print '**FAILED**'
exit 1
fi
Start Free Trial