[Linux-disciples] scheduling a file transfer

Adam Rosi-Kessel adam at rosi-kessel.org
Wed Mar 28 18:52:45 EDT 2007


Dylan Thurston wrote:
>>> i would like to schedule an FTP session for a specified time.  is it  
>>> possible to do this with cron?  if so, how is it done?  and i how  
>>> would i deal with sending the commands that need to happen within FTP?
>> You can script ftp, but it's easier to script lftp. I'm sure there is an
>> OS X version, and it should already be installed on the bostoncoop
>> systems. You would just run a cronjob that called lftp with the script
>> you wanted.
>> How to script lftp?  http://www2.papamike.ca:8082/tutorials/pub/lftp.html#scripts
>> How to use the cron and crontab commands?  <http://www.tech-geeks.org/contrib/mdrone/cron&crontab-howto.htm>
> Also, if you need to type a password, you should use the sftp (ftp over
> ssh) and set up ssh so you can log in with no password.

If you are connecting to a system that supports secure FTP, it would
probably just be easier to write a shell script and use scp and/or
rsync. I was thinking you were limited to FTP.

A


More information about the Linux-disciples mailing list