[Linux-disciples] scheduling a file transfer

Jamie Forrest jaf at honksandsirens.com
Wed Mar 28 20:12:50 EDT 2007


I am limited to FTP--no ssh.  But curl should do the trick, no?  I  
can get all the information in one curl command in my cron file, a la:

* * * * * curl -C - -O ftp://username:password@ftp.server.com/file

Wouldn't that work?  Into what directory will that put the file?

Jamie

On Mar 28, 2007, at 6:52 PM, Adam Rosi-Kessel wrote:

> 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
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20070328/426e0814/PGP.pgp


More information about the Linux-disciples mailing list