【发布时间】:2019-11-05 20:16:21
【问题描述】:
我尝试使用 cronjob 并且 crontab -l 将我保存在那里的命令传递给我:
00 20 * * * root /usr/sbin/rtcwake -m off -s 32000
这应该会在 20:00 关闭电路板并在 32 000 秒后打开。但是什么也没发生,电路板仍然打开。
【问题讨论】:
标签: cron debian startup shutdown
我尝试使用 cronjob 并且 crontab -l 将我保存在那里的命令传递给我:
00 20 * * * root /usr/sbin/rtcwake -m off -s 32000
这应该会在 20:00 关闭电路板并在 32 000 秒后打开。但是什么也没发生,电路板仍然打开。
【问题讨论】:
标签: cron debian startup shutdown
您使用的格式适用于/etc/cron.dfiles。对于普通的cron 记录,它必须是这样的:
00 20 * * * /usr/sbin/rtcwake -m off -s 32000
【讨论】: