(This is a script to help you go to sleep soundly, oh wait, no, that's not true.)
This is a script to shutdown the computer after a current time, and prevent the computer from going suspended or turnning off the power automatically.
使电脑在一段时间后自动关机的脚本,并且防止电脑在这段时间挂起。(所以你可以尽情使用你的WiFi :)
Put the script in somewhere handy so that you can start it easily~
把这个脚本放在你随时都能够得着的地方~
- Start the script / 启动脚本
gosleep-mode [timeleft-to-shutdown-in-minutes]
- Abort shutdown schedule when script is running / 在脚本还在运行的时候取消关机排程
Input command > abort|cancel|a|c
Notice that it's supposed not to close the terminal window, or you may not be able to cancel the shutdown schedule. This bug may be fixed in the next version, with service control.
请注意一旦关闭该脚本的控制台窗口,你可能没有机会取消关机排程。这个Bug大概会在下个版本的时候修复。