小编use*_*171的帖子

Ubuntu 在 crontab 中支持“@reboot”吗?

Ubuntu@reboot在 crontab 中支持吗?

我发现文档表明它受支持,但网络聊天断言它不是。

我无法使该@reboot部分工作。“午夜之后”部分工作正常。

这是我的测试示例/etc/crontab

$ cat /etc/crontab
# /etc/crontab: system-wide crontab

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 …
Run Code Online (Sandbox Code Playgroud)

cron

27
推荐指数
1
解决办法
6万
查看次数

标签 统计

cron ×1