• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to schedule an autonomous (SMTP/FAX) service.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to schedule an autonomous (SMTP/FAX) service. (From: email@hidden)

  • Prev by Date: Re: fundamental question: how do I call controller methods from other classes?
  • Next by Date: Re: Cocoa et al as HCI usability problem
  • Previous by thread: Re: How to schedule an autonomous (SMTP/FAX) service.
  • Next by thread: [MEET] Aachen (Germany) CocoaHeads
  • Index(es):
    • Date
    • Thread