|
|
Notify yourself periodically using Growl
How about crontab? This is Unix, after all. I know, not certified Unix, but just you wait ...
Enter the following in your crontab file: 0,30 7-5 * * 1-5 /usr/local/bin/growlnotify -s -m "dont forget to drink"
This will have the operating system notify you every half hour, from 7:00 AM to 5:00 PM, Monday thru Friday. That way, you don't have to remember the command, you don't have to manage a script, and you don't have to remember it. come in to work and it'll start nagging you to drink.BTW, crontab use on Tiger is locked down pretty tight. Check here for hints on using crontab: [link:]http://www.macosxhints.com/article.php?story=2001020700163714 I had to write the crontab to a temp file then install the temp file by typing 'crontab /tmp/crontab.[something]'. You could also save the temp file to your home directory as ~/crontab and install it from there.
Notify yourself periodically using Growl
What do you mean crontab is locked down tight?
launchd
You might benefit from exploring "launchd", the new way of doing crontab-like things. Launchd is actually much more powerful than cron, and people are encouraged to move to it and avoid the legacy cron, though it still works just fine.
launchd vs. cron
Firstly, I would actually not particularly recommend cron, simply because that crontab will run whether or not you're logged in. Not that it makes a big difference in practice, of course, but it's just cleaner not to run stuff that you know will fail sometimes.
That said, I vastly prefer cron to launchd. Can I ask what you feel makes launchd is "much more powerful"? than cron? Yes, launchd has some features that cron does not have, like setting niceness or IO priority. But do you know why those features are not in cron? THEY DON'T BELONG THERE. We already have separate tools to control these things. Why should they be built into a scheduling tool? This is part of the Unix philosophy, which Apple just does not "get". Cron is stable, simple, well-understood, ubiquitous, and documented by an open standard. Launchd is a big hairball that's none of those things.
launchd vs. cron
wouldn't a users's crontab only be run when they are logged in?
launchd vs. cron
wouldn't a users's crontab only be run when they are logged in?Nope, cron runs crontabs whether or not corresponding users are logged in. If you want "only run if logged in" behavior for specific cron tasks they'd have to somehow check the login status (e.g. using a wrapper script). |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.32 seconds |
|