wdate=`date '+%Y-%m-%d'`
wdate1=`date '+%m%d%y'`
logdate=`date '+%m%d%y%H%M%S'`
source=/your source/$wdate
destination=/yourdestination
log_dir=/loglocations/log
log=$log_dir/logfilename_$wdate1.log
while true
do
if [ -d "$source" ]
then
echo $source
echo $source/*.csv
if [ ! -s "$source/*.csv" ]
then
echo " File exists- copying the File to destination @$logdate" >> $log
cp $source/*.csv $destination/logfilename_$wdate1.csv
echo " copied the file..exiting now $logdate" >>$log
exit 0
else
echo "sleepping ..."
sleep 10
fi
fi
echo $wdate
done
1 comment:
I do not know if it’s just me or if everybody else encountering issues with your site. It seems like some of the text in your content are running off the screen. Can someone else please provide feedback and let me know if this is happening to them as well? This might be a problem with my browser because I’ve had this happen previously. Cheers
Post a Comment