Hi,
Currenty I am transfering the files which are in list-test.txt. Below is the code for same -
file_ftp ()
{
while read inFile
do
#inFile=abc.arch.gz
FILETYPE=$inFile
ftp -in $GATEWAY1 <<!
user $USERID1 $PASSWD1
lcd $PICKUPDIR
cd $DROPDIR1
bin
mput $FILETYPE
bye
!
done < /home/rgupta/list-test.txt
}
Now i want to transfer the files which are 2 days old. I will be running this through cron jos on alternate day basis basis. So for this i want to use find /home/rgupta/hmreports/*.* -type f -mtime -50 -exec ls -lrt {} \; command.
Could you please let me know the way to use this?
Thanks