简体   繁体   English

从FTP抓取文件

[英]File grabber from FTP

I have a file that changes every day for my website and I want to make a program that takes it from the FTP server and either downloads it to my phone or my laptop. 我的网站每天都有一个文件在变化,我想制作一个程序从FTP服务器上获取该文件,然后将其下载到手机或笔记本电脑中。

How would I go about making this and what code do I use? 我将如何进行这项工作以及使用什么代码?

A few options not already mentioned: 一些尚未提及的选项:

  • If you have access to the ftp server, a cron job could email the file to you each day. 如果您可以访问ftp服务器,则cron作业可以每天通过电子邮件将文件发送给您。
  • You could create a web page populated with the data, using jsp, php, or servlet etc. to read the file from disk. 您可以使用jsp,php或servlet等创建一个填充有数据的网页,以从磁盘读取文件。
  • If you're familiar with rsync, you could simply rsync the file to your laptop 如果您熟悉rsync,则只需将文件rsync到笔记本电脑
  • Sync the file using Dropbox 使用Dropbox同步文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM