cleansedbb
Technical User
I have a cron script that ftps sitestat files from my other pc daily. I've been noticing that some files dont transfer or come in garbage. is there a way to verify a file transfer via shell script? if so can you make it retry on fail?
Thanks.
below is what I have so far:
#!/bin/sh
##########
cd /log/file/path
#
ftp -inv <<END_FTP
open site.com
user name pass
cd /path/to/stats/
bin
mget *.gif
mget *.jpg
asc
mget *.html
bye
END_FTP
################
exit 0
Thanks.
below is what I have so far:
#!/bin/sh
##########
cd /log/file/path
#
ftp -inv <<END_FTP
open site.com
user name pass
cd /path/to/stats/
bin
mget *.gif
mget *.jpg
asc
mget *.html
bye
END_FTP
################
exit 0