Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Cron thingy...

Cron thingy...
Thread Tools
Junior Member
Join Date: Dec 2000
Location: Edmonton, Canada
Status: Offline
Reply With Quote
Nov 25, 2001, 12:08 AM
 
Hey there,

I am trying to design a Cocoa program that, when a checkmark is checked, an action will happen (like pinging a server) I'd like it to be user friendly, and avoid the terminal. I'd also like it to work even when the Cocoa app has quit.

My solution is, right now, to just update an entry in the crontab file each time the checkbox is checked/unchecked. The cron entry would just be a call to some perl script I wrote.

I don't know, however, if this is the most elegant way to do what I want to do. Is there some OS X way to make stuff happen periodically without directly editing the crontab -l script? I think Sherlock does it with its periodic indexing, but it has no cron entry. Does that mean Sherlock is Magic?

Thanks!

The Macho Man
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Nov 25, 2001, 03:39 AM
 
No, Sherlock just runs an extra process in the background all the time. This might be the best thing for you to do. See the "Foundation Tool" project template, and then use some form of IPC (Distributed Objects, Mach Messages, pipes, sockets, whatever) to communicate with it from your GUI.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2