ftp script

Hi friends,

i want to a shell script that automatically download data from remote ftp site.
for every one hour.

only recently updated files should be downloded.

how to write shell script.

any one please help.

regards
rajan

please any one solve my problem.

:o

You could set up a crontab to run a script every hour.

Here is an automatic ftp script

/usr/5bin/ftp -n servername <<EOF_FTP
user username password
cd /to/remote/directory/reports
lcd /to/local/directory
bin
prompt off
mget *.pdf
quit
EOF_FTP

The newer or older stuff I have no idea...

Cheers,
Sean.