Scheduling Jexsiter on Mac

Resources distilled and preserved

For much more detail check out the following:


  • Launchd is OSX replacement for cron jobs. Use /Library/LaunchAgents for root jobs to be launched on start up. User log in runs that users ~/Library/LaunchAgents.
  • launchd expects .plist file. Best practice, use reverse domain name (unique) in file name and label field! Remember to make label field the same as file name (needs to be unique).

plist file

<?xml version="1.0" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" " PropertyList-1.0.dtd">
<plist version="1.0">

Controlling plist

Load/Unload - use schedule in plist

Loads script to be executed on the schedule listed in its .plist file.

launchctl load/unload ~/Library/LaunchAgents/org.medale.exsiter.plist

Start/stop script now

$Label is value of /dict/key=Label in .plist file

launchctl start/stop $Label


Checking plist for valid format:

plutil -lint org.medale.exsiter.plist

Show all processes under launchctl:

launchctl list

Remove old plist from launchctl:

launchctl remove $Label