Wget 无法使用符号链接在 /etc/cron.d/ 中工作?(我有一台 Raspberry Pi)

Wget 无法使用符号链接在 /etc/cron.d/ 中工作?(我有一台 Raspberry Pi)

我有一个 cronfile/home/pi/path/并在 中建立了一个符号链接/etc/cron.d/cron_some_file。我想使用 wget 自动更新 cron 文件(我想从服务器进行更改,这样我就不必直接访问 Raspberry Pi),并使用以下行:

1 */3 * * * root wget -m -nH --ftp-user=user --ftp-password=pass ftp://ip_addres_of_the_server/path

如果我手动写入,它会下载某些文件中的某些内容,但在 cronfile 中它不起作用。我查看了 syslog 文件,发现以下错误:

**cron[451]:Error: bad username; while reading /etc/cron.d/cron_some_file**

**cron[451]:(*system*cron_some_file) ERROR(Syntax error, this crontab file will be ignored)**

在此处输入图片描述

有人知道我该如何解决这个问题吗?

相关内容