The agent can be loaded by logging out and back in, or with: sudo launchctl load /Library/LaunchAgents/me.lri.forceshutdown. If the plist was owned by a normal user, trying to load it would result in the error launchctl: Dubious ownership on file (skipping): sudo chown root /Library/LaunchAgents/me. Open Terminal using Spotlight search ( Command + Space) and hit Return. The following will put the computer to sleep at 23:45:00 on December 2, 2014. After installation, type lazy-mac commands in terminal as follow. Use the script to set a countdown timer and Mac will turn screen off or quit all applications or shutdown completely after time runs out regardless of what you are doing. Add the command for the actions you want to perform. A simple script to break the procrastination loop. You may want to substitute the default icon of the executable file, click to identify it and hold down Command + l. The pmset terminal command should do what you want. Nonetheless, for advanced Mac users, using the terminal reboot command can be an invaluable trick for troubleshooting purposes, remote systems administration, remote management through SSH, after installing software updates on a Mac through the command prompt, and a great number of other reasons. It works in 24 hours format, so if you need to schedule your Mac for a shutdown at 3:55 P.M, you can set the time as 15:55:00, as taken below. Halt at yymmddhhmm: shutdown -h 1109211555 Double-click the shutdown desktop shortcut to open Terminal, prompting you to type your user password.
0 Comments
Leave a Reply. |