Cron 如何在每天的特定时间使用debian启动和关闭itx板

Cron 如何在每天的特定时间使用debian启动和关闭itx板,cron,debian,startup,shutdown,Cron,Debian,Startup,Shutdown,我尝试使用cronjob,crontab-l将保存在那里的命令传递给我: 00 20 * * * root /usr/sbin/rtcwake -m off -s 32000 这将在20:00关闭电路板,并在32000秒后打开。但是什么也没发生,电路板仍然打开。您使用的格式适合/etc/cron.d文件。对于正常的cron记录,它必须如下所示: 00 20 * * * /usr/sbin/rtcwake -m off -s 32000

我尝试使用cronjob,crontab-l将保存在那里的命令传递给我:

00 20 * * * root /usr/sbin/rtcwake -m off -s 32000

这将在20:00关闭电路板,并在32000秒后打开。但是什么也没发生,电路板仍然打开。

您使用的格式适合
/etc/cron.d
文件。对于正常的
cron
记录,它必须如下所示:

00 20 * * * /usr/sbin/rtcwake -m off -s 32000