Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'simplify using the at facility' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
simplify using the at facility
Authored by: mervTormel on Mar 12, '04 12:07:17PM
$ echo '/usr/bin/say "get out"' | at 0900

[ Reply to This | # ]
simplify using the at facility
Authored by: hopthrisC on Mar 12, '04 01:31:24PM
You can simplify the shell script itsel (somewhat...)
date "+%I %M %p. get to work" |say -v Victoria
or the non-US version:
date "+%H %M. get to work" |say -v Victoria
Tip 1: The options for the format string of date are listed in the strftime(3) man page (for which you have to install Developer Tools) Tip 2: No need to exit at the end of a shell script! It will exit with the return code of the last command executed.

[ Reply to This | # ]
Or in Jaguar ...
Authored by: mshmgi on Mar 12, '04 04:21:24PM

osascript -e 'say "Time to go to work."'

I must be the oldball here. I actually have a cron job that reminds me that it's time to go home (from work) :)

[ Reply to This | # ]
At facility disabled
Authored by: PeteVerdon on May 15, '04 02:10:00PM

From the at(1) man page on 10.3.3:

at, batch, atq, atrm are all disabled by default on Mac OS X. Each of
these commands depend on the execution of atrun(8) which has been
disabled due to power management concerns. Those who would like to
use these commands, must first re-enable /usr/libexec/atrun
<followed by instructions to do that>

I didn't fancy reenabling it just for this little hack.

[ Reply to This | # ]