Questions tagged [launchdagent]
23 questions
1
vote
4 answers
LaunchAgent - Is there something like RunAtScreenSaver?
I am looking for a way to execute my app (it's a background task) at times, where the machine is "idle". A good incident would be when the screensaver launches. I already read the manual auf launchd and already use a LaunchAgent to lauch my app at…
Josh
0
votes
2 answers
Getting Launchd to repeatedly run a script without waiting for previous launch to finish in OSX
Let's say I have the script below
#! /bin/bash
sleep 300
dt=$(date '+%Y/%m/%d %H:%M:%S')
echo $dt >> /foo/bar/test.txt
When I set up a launchagent to trigger this script every 2 minutes... launchd will wait for the script to finish before…

arlovande
- 81
- 1
- 8
0
votes
1 answer
OSX: Syntax for loading a single launchagent for current user
I am trying to load a single user's LaunchAgent plist. All existing plist files in the directory have the permissions of the user and the user's default group,
If I use those permissions for my plist file and try to load, I get
$ sudo launchctl…

turtlemonvh
- 9,149
- 6
- 47
- 53
0
votes
3 answers
ImportError: No module named bs4 when called from launchd
I am running the following python imports in a script that works fine from the command line in terminal and from the ipython notebook.
#!/usr/bin/python
import os
import re
import urllib
import urllib2 as ul
import sys
from bs4 import BeautifulSoup…

cubflier
- 47
- 5
0
votes
1 answer
Get Zookeeper started automatically in OS X Yosemite using launchd
Like the title said, I'm trying to launch zookeeper automatically using launchd/launchctl in OS X Yosemite.
This is my plist file "/Library/LaunchDaemons/com.test.zookeeper.plist", it's owned by root:wheel.

Shun Y.
- 103
- 1
- 6
0
votes
1 answer
Script not running in launchd plist
I'd like to use launchd to run one of my applescripts at a specific time each day.
I created the plist and put it in the LaunchAgent folder, but it doesn't run the script.
I downloaded LaunchControl, http://www.soma-zone.com/LaunchControl/. When I…
0
votes
2 answers
PHP Fast CGI on mac osx - phpfcgi.plist not runing by load, not runing by reboot neither
I have loaded phpcgi.plist but php-fastcgi is not runing.
The plist file is:
Michaels-MacBook-Pro:~ michael$ ll com*
-rwxr--r-- 1 michael admin 664 4 7 13:40 com.phpfcgi.plist*
The plist XML:
Michaels-MacBook-Pro:~ michael$ cat…

emj365
- 2,028
- 2
- 19
- 24
0
votes
1 answer
How do I secure a per user GUI launchd agent against a non admin user disabling it?
I have a pair of launchd daemons, one of which is a true daemon (runs as root) and one of which is a GUI agent that runs as a per GUI session basis (session type Aqua).
I need to prevent non admin level users from disabling the user level agent…

Redwood
- 66,744
- 41
- 126
- 187