Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Automation wget-如何自动执行wget调用_Automation_Wget - Fatal编程技术网

Automation wget-如何自动执行wget调用

Automation wget-如何自动执行wget调用,automation,wget,Automation,Wget,你好 我使用wget从固定源下载文件 $ wget --user=david --password='myPassword' http://the_url.updatedfile.pdf 现在这些文件不断更新,所以我必须自动化下载过程,比如每天12:00运行 我如何做到这一点?或者,唯一的解决方案是编写一个包含wget命令的批处理文件,然后在此文件上安排任务 谢谢您使用的是什么操作系统?如果您使用的是*nix环境,那么可以编写一个bash脚本,作为cron作业执行。如果在Windows中,您可

你好

我使用wget从固定源下载文件

$ wget --user=david --password='myPassword' http://the_url.updatedfile.pdf
现在这些文件不断更新,所以我必须自动化下载过程,比如每天12:00运行

我如何做到这一点?或者,唯一的解决方案是编写一个包含wget命令的批处理文件,然后在此文件上安排任务


谢谢

您使用的是什么操作系统?如果您使用的是*nix环境,那么可以编写一个bash脚本,作为cron作业执行。如果在Windows中,您可以使用计划任务来执行类似的任务。是的Windows…正如我在问题中所说的-计划任务是实现自动化的唯一方法还是wget内置了自动化功能?wget没有我所知道的自动化功能(从时间角度看)