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

问题描述 投票:0回答:1

我尝试使用cronjob和crontab -l向我发送了我保存在那里的命令:

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

这应在20:00时关闭电路板,然后在32000秒后打开。但是没有任何反应,开发板仍然处于打开状态。

cron debian startup shutdown
1个回答
0
投票

您使用的格式适用于/etc/cron.d文件。对于普通的cron记录,它必须类似于:

00 20 * * * /usr/sbin/rtcwake -m off -s 32000
© www.soinside.com 2019 - 2024. All rights reserved.