#!/bin/ksh
LOGFILE=/export/home/oracle/paresh/mylog.log
NOTIFY_LIST=me@pvmehta.com
while true
do
echo “Reading Time : `date` n” >> ${LOGFILE}
echo “Following Files are currently copying” >>${LOGFILE}
ls -rlt /db*/oradata/800JPOE/*.dbf | tail -2 >>${LOGFILE}
echo “Out of 116 files, `ls -rlt /db*/oradata/800JPOE/*.dbf | wc -l` files copied so far” >> ${LOGFILE}
echo “df -k /800JPOEARCH” >> ${LOGFILE}
df -k /800JPOEARCH >> ${LOGFILE}
echo “Oldest files in /800JPOEARCH folder” >>${LOGFILE}
ls -lt /800JPOEARCH/*.arc | tail -2 >>${LOGFILE}
echo “Latest files in /800JPOEARCH folder” >>${LOGFILE}
ls -rlt /800JPOEARCH/*.arc | tail -2 >>${LOGFILE}
tail -15 ${LOGFILE} | mailx -s “copy status from source1 to target1” ${NOTIFY_LIST}
sleep 900
done