Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo for Mac OS X (Portage for Mac OS X)
  • Search

OS X 10.4 launchd

Running Portage on Mac OS X and need help with a problem? Post here.
Locked
Advanced search
2 posts • Page 1 of 1
Author
Message
decrease789
Apprentice
Apprentice
User avatar
Posts: 194
Joined: Fri Jun 25, 2004 4:49 pm
Location: The United Krapdom

OS X 10.4 launchd

  • Quote

Post by decrease789 » Sat Apr 19, 2008 1:35 am

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: Select all

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: Select all

<?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.
Top
grobian
Developer
Developer
Posts: 67
Joined: Wed May 31, 2006 4:02 pm

  • Quote

Post by grobian » Mon Jun 09, 2008 7:42 pm

IIRC Apple suggests you just to use cron.
Gentoo on a different level
Top
Locked

2 posts • Page 1 of 1

Return to “Gentoo for Mac OS X (Portage for Mac OS X)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy