Experience: is what you get soon after you need it.

Experience: is what you get soon after you need it.

****************I am authoring a Book on Oracle Database Cloud Services.......More details to follow.***************

Title : Oracle Database Cloud Revealed
Publisher : Apress
Release Date : Jan-2019


Rasul Allah (sal Allahu alaihi wa sallam) said: "Restore the trusts of those who trust you, and deal not falsely with him who deals falsely with you." [Abu Dawud, Tirmidhi]

My Cloud Certifications:

Azure Administrator Associate

AWS Certified Solutions Architect Associate

Oracle Cloud Infrastructure 2018 Certified Architect Associate.

Oracle Cloud Infrastructure Classic 2018 Certified Architect Associate.

Oracle Database Cloud Administrator Certified Professional.

Oracle Database Cloud Service Operations Certified Associate.

Search This Blog

Thursday, May 10, 2012

Copy file from source to destination when size > 0 bytes

wdate=`date '+%Y-%m-%d'`
wdate1=`date '+%m%d%y'`
logdate=`date '+%m%d%y%H%M%S'`
source=/your source/$wdate
while true
  if [ -d "$source" ]
echo $source
echo $source/*.csv
      if [ ! -s "$source/*.csv"  ]
         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
   echo "sleepping ..."
          sleep 10
echo $wdate

1 comment:

Anonymous said...

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