View previous topic :: View next topic |
Author |
Message |
decrease789 Apprentice
Joined: 25 Jun 2004 Posts: 194 Location: The United Krapdom
|
Posted: Sat Apr 19, 2008 1:35 am Post subject: OS X 10.4 launchd |
|
|
I'm new to this launchd scheduler. I am trying to run a perl script every 60 secs but I keep getting the following message(s) in system.log before launchd removes the job!!! Code: | Apr 18 14:19:38 kimba launchd: org.james.desktop: 9 more failures without living at least 60 seconds will cause job removal | I just want to run my script every 60 seconds as I would do with cron. My .plist file is as below Code: | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>GroupName</key>
<string>james</string>
<key>Label</key>
<string>org.james.script</string>
<key>Program</key>
<string>./script.pl</string>
<key>ProgramArguments</key>
<array>
<string>./script.pl</string>
</array>
<key>ServiceDescription</key>
<string>change desktop</string>
<key>StartInterval</key>
<integer>60</integer>
<key>TimeOut</key>
<integer>5</integer>
<key>UserName</key>
<string>james</string>
<key>WorkingDirectory</key>
<string>/Users/james</string>
</dict>
</plist> | I would use cron but I can it does not seem to work at the moment, either way I would prefer to use launchd. |
|
Back to top |
|
|
grobian Developer
Joined: 31 May 2006 Posts: 67
|
Posted: Mon Jun 09, 2008 7:42 pm Post subject: |
|
|
IIRC Apple suggests you just to use cron. _________________ Gentoo on a different level |
|
Back to top |
|
|
|