Posts

Showing posts from June, 2019

华硕路由器计划任务定时启动电脑

 -因为每天电脑都要在凌晨运行脚本,但是电脑只有wake-on-line这个选项。所以直接拿路由器实现是最简单的。 开启路由器ssh功能。电脑也要开启唤醒功能。 先可以ssh连接后试用一下:  /usr/sbin/ether-wake -i br0 11:22:33:44:55:66 如果可以的话设置定时任务: 用winscp登陆,修改或添加文件:位置在  /var/spool/cron/ 我写的内容: 55 4 * * 1 /usr/sbin/ether-wake -i br0 1C:39:47:CE:11:C9 #LenovoSunday# 55 3 * * 1 /usr/sbin/ether-wake -i br0 1C:39:47:CE:11:C9 #LenovoMonday# 00 5 * * 2 /usr/sbin/ether-wake -i br0 1C:39:47:CE:11:C9 #LenovoTuesday# 40 4 * * 3 /usr/sbin/ether-wake -i br0 1C:39:47:CE:11:C9 #LenovoWednesday# 10 5 * * 4 /usr/sbin/ether-wake -i br0 1C:39:47:CE:11:C9 #LenovoThursday# 33 3 * * 5 /usr/sbin/ether-wake -i br0 1C:39:47:CE:11:C9 #LenovoFriday# 05 5 * * 6 /usr/sbin/ether-wake -i br0 1C:39:47:CE:11:C9 #LenovoSaturday# 貌似重启生效。