Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OS X 10.4 launchd
View unanswered posts
View posts from last 24 hours

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo for Mac OS X (Portage for Mac OS X)
View previous topic :: View next topic  
Author Message
decrease789
Apprentice
Apprentice


Joined: 25 Jun 2004
Posts: 194
Location: The United Krapdom

PostPosted: Sat Apr 19, 2008 1:35 am    Post subject: OS X 10.4 launchd Reply with quote

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
View user's profile Send private message
grobian
Developer
Developer


Joined: 31 May 2006
Posts: 67

PostPosted: Mon Jun 09, 2008 7:42 pm    Post subject: Reply with quote

IIRC Apple suggests you just to use cron.
_________________
Gentoo on a different level
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo for Mac OS X (Portage for Mac OS X) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum