Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

CRON on OS X server or launchd?
  • Vote Up0Vote Down DavidDavid
    Posts: 5Sendy user


    I'm running a very small (basically a test) newsletter from my os x server system... CRON is deprecated in os x server, should I use launchd or still try to use CRON?

    Thanks, David

  • Vote Up0Vote Down BenBen
    Posts: 3,667Sendy support

    Hi David,

    The cron script (scheduled.php) needs to be executed by cron every 5 minutes, if you have other ways to execute this script every 5 minutes, you can do so.


    Best regards,

  • David, if you figure out how, please post it on the forum, I've tried w/o luck!

    Thanks, Isaac

  • Vote Up0Vote Down DavidDavid
    Posts: 5Sendy user

    Isaac, worked something out.

    We need to make a .plist file, like so. In this example, the .plist file would be called com.myhost.sendy.plist, and a real path to scheduled.php is required :)

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
    <plist version="1.0">

    This file needs to be moved to /Library/LaunchDaemons


    sudo launchctl load -w /Library/LaunchDaemons/com.myhost.sendy.plist

    One can see if it's loaded:

    sudo launchctl list | grep sendy

    Hope this helps... it seems to work, and I would appreciate any comments from others on the viability of this.

This discussion has been closed.
All Discussions