I am trying to get Offlineimap to run every 5 minutes with launchd. I do not know why it doesn't work and the log file is not written on the specified location. I am running MacOS Mojave on a 2018 MacBook Pro. Can anyone tell me what the problem is with the following plist:

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

Running Offlineimap in the terminal with the exact same arguments works flawlessly. I should perhaps mention that I tried to set up a cronjob; in that case I got the error message that Python could not be found.

  • Have a look at the man page for launchd.plist,, especially the ProgramArguments and Program keys. – nohillside Feb 4 at 11:48
  • Our canonical "what tools help debug launch daemon plist syntax" suggests tools to make the debugging obvious. They coded all the rules and syntax and pre-flight checks and you get actionable pop ups. See apple.stackexchange.com/questions/217453/configure-launchd – bmike Feb 4 at 12:53
  • Also - what does stderr and stdout show if you add those sections to the plist? In fact, what error code are you getting when you try and run the plist as you posted it? You say you get errors, posting the text of that error and how to reproduce it would possibly help us help you. – bmike Feb 4 at 12:55
  • I have tried to find the answer here on Stackexchange, but I cannot understand the problem (fairly new to MacOS coming from Debian). And as far as the stderr regards, the plist does not seem to produce any such file... – Rastignac Feb 4 at 14:41
  • Runatload and time interval looks an odd combination – user151019 Feb 4 at 18:05

You must log in to answer this question.

Browse other questions tagged .