It works (just like the other one) but not from behind the screensaver
Interestingly, if I set the schedule in System Preferences to sleep the computer – it works fine behind the running locked Screensaver (by “locked” I mean the one that requires a password to dismiss)
Well, I can think of one theoretical solution but I am not sure if I can implement it:
A third-party application could possibly be written to allow for more sleep options in the Schedule pane in OS X’s System Preferences.
As I already mentioned above, the sleep function generated by Sys Prefs does work behind the locked screensaver. I really need only a couple of more times to sleep the computer during the day.
and a Menu came up that tells me all the available option, and a sleep option wasn’t one of them. I had shutddown -h, shutdown -r, and a couple of others. So I guess “sleep” wasn’t one of the options.
DESCRIPTION
The shutdown utility provides an automated shutdown procedure for super-
users to nicely notify users when the system is shutting down, saving
them from system administrators, hackers, and gurus, who would otherwise
not bother with such niceties.
The following options are available:
-h The system is halted at the specified time.
-r The system is rebooted at the specified time.
-k Kick everybody off. The -k option does not actually halt the
system, but leaves the system multi-user with logins disabled
(for all but super-user).
-o If one of the -h, -p or -r is specified, shutdown will execute
halt(8) or reboot(8) instead of sending signal to init(8).
-n If the -o is specified, prevent the file system cache from being
flushed by passing -n option to halt(8) or reboot(8). This
option should probably not be used.
time Time is the time at which shutdown will bring the system down and
may be the word now (indicating an immediate shutdown) or specify
a future time in one of two formats: +number, or yymmddhhmm,
where the year, month, and day may be defaulted to the current
system values. The first form brings the system down in number
minutes and the second at the absolute time specified.
warning-message
Any other arguments comprise the warning message that is broad-
cast to users currently logged into the system.