【发布时间】:2021-06-07 09:12:07
【问题描述】:
我有下面的 cron 命令,它与 CPanel 完美配合,但在 DirectAdmin 面板中不起作用。 此命令每分钟从远程 URL 下载一个以当前日期为名称的 zip 文件(例如 2021-03-09.zip)到本地目录。我已附上一封电子邮件以接收 cron 输出。输出写在命令下方。我正在使用带有 apache 服务器和 PHP 的共享主机。
命令:
* * * * * /usr/bin/wget -U "anyuser" http://example.com/directory/`date +%Y-%m-%d`.zip -O /home/username/public_html/directory/`date +%Y-%m-%d`.zip
错误:
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
【问题讨论】:
标签: php apache cron shared-hosting directadmin