需要 Shell 脚本从 ftp 链接下载文件吗?
我需要获取这个文件 ftp://1034733:[电子邮件受保护]/idx_fl_ftp_down/idx_ftmyersbeach_dn/ftmyersbeach_data.zip 到我网站的服务器。这似乎是一个足够简单的任务......但是,我目前找不到解决方案。 PHP 似乎无法完成这项工作。 Wget 是我的下一个想法,但是,godaddy 安装的 wget 给了我一个“连接被拒绝”的问题(尽管 wget 在我的电脑上适用 - mac os x 10.6)。我现在认为这与 Godaddy 方面的事情有关,但我坚持我所拥有的。我的目标是编写一个通过 cron 作业执行的脚本(我需要每天下载这个文件)。请有人帮忙!我已经快要把头发从头上扯下来了!我过去两周都在做这个! 另外,我尝试通过 shell 和 wget 使用curl。两者都失败了。不幸的是我只能访问这个链接,我没有 idx.living.net 的 ftp 登录
I need to get this file
ftp://1034733:[email protected]/idx_fl_ftp_down/idx_ftmyersbeach_dn/ftmyersbeach_data.zip
to my site's server. THis seems like an easy enough task... but, I cannot find a solution at this point. PHP doesn't seem to be capable of getting the job done. Wget was my next thought, however, godaddy's installation of wget gives me a 'connection refused' problem (although it wget works for this on my computer - mac os x 10.6). I'm now thinking it has to do with godaddy's side of things, but I am stuck with what I have. My goal here is to write a script that will execute through a cron job (i need to download this file every day). Someone please help! I am to the point of ripping my hair out of my head! I've spent the last two weeks on this!
Also, I've tried using curl through the shell and wget. both have failed. Unfortunately I only have access to this link, I do not have an ftp login for idx.living.net
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)