Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8366415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:54:45+00:00 2026-06-09T12:54:45+00:00

Community! I am trying to execute a simple script every 5 minutes on my

  • 0

Community!

I am trying to execute a simple script every 5 minutes on my OSX 10.7.4. It should run no matter a user is logged into the machine or not (aka in the background session)

Thus I created I com.me.script.plist in /System/Library/LaunchDaemons/
and loaded it via: launchctl -S background ./com.me.script.plist
and started it via: launchchctl start com.me.script

It runs fine the first time. But it never runs again after my set interval of 300seconds!

Do you guys have any advice as to why that could be? If I run it in the Aqua Session it works perfectly, however, that means it’ll only run if a user is logged in. However, I’d really need it to start running before that… and continue to do so no matter if a user logs in/out or another user logs in/out.

Here’s my plist:

<?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>LimitLoadToSessionType</key>
        <string>Background</string>
        <key>Label</key>
        <string>com.me.script</string>
        <key>ProgramArguments</key>
        <array>
            <string>/usr/bin/php</string>
            <string>/Sites/script/notifier.php</string>
        </array>
        <key>StartInterval</key>
        <integer>900</integer>
    </dict>
</plist>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:54:46+00:00Added an answer on June 9, 2026 at 12:54 pm

    I found my own mistake… StartInterval should be 300 and not 900 if I expect it to run every 5min. sorry, stupid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Magento Community Edition ver. 1.6.2.0. I’m trying to add a Simple product
when trying to create a simple procedure in mysql 5.1.47-community it fails everytime i've
Hello dearest community, I am trying to build a simple AutoUpdate application using VB.NET.
I'm trying to do something that sounds fairly simple using ASP.NET 3.5. A user
I'm trying to open an existing project into Idea Community Edition (it is a
I'm trying to get into the Clojure community. I've been working a lot with
I run Ubuntu 10.10. I just want to debug a simple script. After spending
I'm trying to follow a simple example of AJAX-enabled WCF Service like: http://www.pluralsight.com/community/blogs/fritz/archive/2008/01/31/50121.aspx I'm
Hi to the community, i'm trying to build a facebook application with a simple
I'm trying to use the MSBuild NUnit community task to force tests to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.