【发布时间】:2019-04-04 09:51:16
【问题描述】:
我想每分钟执行一次命令 (SSH)。该命令是一个cURL bash,长度为1625。当我将命令放入crontabs并保存时:
"/tmp/crontab.ijKPl1/crontab":51: command too long
errors in crontab file, can't install.
Do you want to retry the same edit? (y/n)
【问题讨论】:
-
您的 cron 命令中可能有一个字符,该字符在 crontab 中具有特殊含义。尝试将命令放在 bash 文件中,然后执行 bash 文件。
-
你最好在Unix & Linux 询问这个问题。这个网站是为编程相关的问题。