hi ya, pls can you take a quick & tell me what's wrong here. When i run this script it just prompts out ie. nothing happens.
thanks in advance :-)
regards,
Jo
**********************
#!/bin/bash
LOGDIR=/opt/ABWebs/DSS/DSS-RES/log
WORKINGDIR=/tmp/
cd $LOGDIR
echo Enter Name
read NNY
if [ -z $NNYY ];
then exit
fi
echo Enter time as hh:mm or hh:m[m-m] {For eg 13:4[1-8] for 13:41 and 13:48}
read TIME
if [ -z $TIME ];
then exit
fi
nice grep "$TIME:.*Output.* $NNY="DSS-RES-Performance.log>${WORKINGDIR}/RSSlog.txt
cd $WORKINGDIR
/bin/sed "s/Key=.*Output=/ /g" RRSlog.txt>${WORKINGDIR}/RRSlog1.txt
/usr/bin/uuencode RRSlog1.txt RRSlog1.txt |mail -s "EBS: $NNY/USD"
mango@gmail.com
rm ${WORKINGDIR}/RRSlog.txt
rm ${WORKINGDIR}/RRSlog1.txt