【发布时间】:2022-01-21 03:31:56
【问题描述】:
我在 Directadmin 中使用以下命令:
/usr/bin/wget -O /dev/null https://www.domain-name.com/index.php?parameter=extrap&task=update
现在,当我发送输出电子邮件时,它显示连接到 URL,但没有 &task=update
【问题讨论】:
标签: cron wget directadmin
我在 Directadmin 中使用以下命令:
/usr/bin/wget -O /dev/null https://www.domain-name.com/index.php?parameter=extrap&task=update
现在,当我发送输出电子邮件时,它显示连接到 URL,但没有 &task=update
【问题讨论】:
标签: cron wget directadmin
在您似乎正在使用的 *nix 操作系统中,& 是一个将进程发送到后台的特殊字符。您可以通过引用 URL 来转义它:
/usr/bin/wget -O /dev/null "https://www.domain-name.com/index.php?parameter=extrap&task=update"
# Here --------------------^------------------------------------------------------------------^
【讨论】: