Re: How to schedule an autonomous (SMTP/FAX) service.
Re: How to schedule an autonomous (SMTP/FAX) service.
- Subject: Re: How to schedule an autonomous (SMTP/FAX) service.
- From: Jens Alfke <email@hidden>
- Date: Wed, 21 May 2008 19:10:42 -0700
On 21 May '08, at 7:20 AM, email@hidden wrote:
What is the preferred way to programmatically schedule a SEND/FAX
event, (preferably via Cocoa)? I could supply the necessary
parameters & data, perhaps stored in User Defaults or a flat file.
Use launchd. (I think cron still exists, but only as legacy, and it's
run by launchd anyway.)
It's not what I'd call easy, though. You'll need to generate the plist
(in ~/Library/LaunchAgents/), run launchctl via NSTask to register it,
and then your task should presumably delete the plist and run
launchctl again after it finishes.
Make sure to read the "daemons and agents" tech note, and the man
pages for launchctl(1) and launchd.plist(5).
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden