I would use this in scripts that need to force a shutdown. + Done bash -c "date sleep 5 /cygdrive/c/Projects In this example, I do the exact same thing except that I spam the enter key a few times to show you that I'm at a prompt during the sleep. I used the date command to illustrate how long the sleep was. Schedule Feature is limited and it is set and forget type, so you cant set 1 time shutdown, it is recurring like everyday, every Monday, Weekend etc. You can do it by background-ing a bash command. If you need your Mac to turn off at a certain time for various reasons (OS updates. It is possible to get second granularity for the shutdown command. NOTE: the command backgrounds everything in the paren, the commands will sleep for 5 seconds then shutdown now. Open Terminal (you can open Applications > Utilities to find it), and depending on what you want to do, enter one of the following commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |