• 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: Crontab/Scheduled tasks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crontab/Scheduled tasks


  • Subject: Re: Crontab/Scheduled tasks
  • From: Hasan Diwan <email@hidden>
  • Date: Thu, 26 Dec 2002 14:21:33 -0500

On Thursday, December 26, 2002, at 07:56 AM, Martin Weil wrote:
>
> So my first question is, if there are other possibility to run
> scheduled tasks with cocoa, without my app running all the time?

at(1), cron(1), a resident shell script that checks if the time has
been reached, etc.

> Second question is, how can I set the crontabs from within cocoa?

Create the crontab file by hand and hand it off to crontab using NSTask.

> Third question is, if there is any possibility to know whether my was
> started by crontab or by the user?

I suppose you could look at the time and make a probabilistic guess.

>
Hasan Diwan
OpenPGP KeyID: 0x7EE3855B
Fingerprint: 42F0 5758 C3EB BA1F ABD2 ED49 3390 CCF0 7EE3 855B
http://www.cs.rpi.edu/~diwanh/gpg.key

[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Crontab/Scheduled tasks
      • From: David Remahl <email@hidden>
References: 
 >Crontab/Scheduled tasks (From: Martin Weil <email@hidden>)

  • Prev by Date: Re: *Really* Understanding Cocoa
  • Next by Date: Re: NSCFNumber, no pool in place - just leaking
  • Previous by thread: Crontab/Scheduled tasks
  • Next by thread: Re: Crontab/Scheduled tasks
  • Index(es):
    • Date
    • Thread