需要一个用于FTP文件下载的Perl脚本 [英] Need a Perl script for FTP files download
问题描述
嗨伙计,
我正在寻找一个Perl脚本。以下是我的要求:
- 从本地计算机上的FTP服务器下载文件,并在空数据库下创建这些所有文件条目。
- 现在下一次脚本运行时,它应该只从FTP服务器下载添加的和
修改过的文件。
case1:
- 如果文件名不存在于DB表中,则为新文件并下载
文件。并更新此文件的数据库表。
案例2:
- 如果文件名'的时间戳不匹配,则为a修改过文件并下载
那个文件。并更新此文件的DB表。
注意:这些文件比较来自FTP和数据库。并且可以找到任何新的或修改过的文件,只需将其复制到本地机器下即可。
我真的很感谢这个帮助。
谢谢
Hi Folks,
I am looking for a Perl script. And Here are my requirements:
- Download files from the FTP server on the local machine and create these all files entries under an empty database.
- Now next time when script will run it should download only the added and
modified files from the FTP server.
case1:
- If filename is not present into DB table, its a new file and download that
file. And update DB table for this file.
case 2:
- If filename''s timestamp doesn''t match, its a modified file and download
that file. And update DB table for this file.
Note: These files comparison would be from the FTP and Database. and as any new or modified files would be found just copy it under the local machine.
I am really appreciating for this help.
Thanks
推荐答案
这里没有这样的工作。
以下是询问者的预期:
1. 先尝试你想做什么!你可能会发现它并不那么难。
2.制定你所做的事情看似问题/不工作。
尝试一下,告诉你是否面临问题。
各位会员非常乐意为此提供帮助。
It does not work like this here.
Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it''s not that hard.
2. Formulate what was done by you that looks like an issue/not working.
Try them and tell if you face issues.
Members will be more than happy to help like this.
这篇关于需要一个用于FTP文件下载的Perl脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!