On Sun, Aug 13, 2000 at 09:17:48AM -0700, [EMAIL PROTECTED] wrote:
> How is it possible to schedule cron or something else to fetch file
> from some ftp-server e.g. ones a week?  Should I use somekind of
> script or what?  This scheduling should work totally automaticly, so
> no username or password asking... or any prompts. I can get to this
> server with anonymous login...

Make sure you have wget installed...

echo "#!/bin/sh" > /etc/cron.weekly/getfile
echo "cd /dest/dir" >> /etc/cron.weekly/getfile
echo "wget ftp://username:password@host:/dir/file" >> /etc/cron.weekly/getfile

chmod +x /etc/cron.weekly/getfile

-- 
Steve Borho                      Voice:  314-429-8300 ext:3042
Member of Technical Staff
Celox Networking Inc

Fortune of the day:
In this world there are only two tragedies.  One is not getting what one
wants, and the other is getting it.
                -- Oscar Wilde



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to