0
votes
1answer
21 views

Spaces in paths of LaunchAgents for launchd in (Mac) OS X

I try to add a LaunchAgent with a path set in WatchPaths that contains a space. I tried the plain path and I tried to escape the space character with a backspace as well as adding quotation marks ...
0
votes
2answers
158 views

Jenkins and provisioning profiles

I'm trying to set my MAC to connect to Jenkins and be ready to build automatically. I've managed to create service that connects to Jenkins, but something is wrong. This is my plist file: ...
1
vote
1answer
81 views

Launchd alternatives

I am writing an application that uses a library that will not work when the application is run as a launchd daemon. There is a bug in the library where it will throw a bus error when used from a ...
2
votes
1answer
953 views

Causes of: com.apple.launchd.peruser.501: Exited with code: 1

A subset of our users are reporting that our application refuses to run (bounces once in the dock, and then closes). If we drill into the application bundle (/Application.app/Contents/MacOS) and ...
0
votes
2answers
59 views

Automating python script on a mac not running

I have tried to have this question answered twice now(1, 2). While both were informative none of the solutions have worked, and I don't know why. The first solution was to use launchctl the second was ...
1
vote
0answers
440 views

Bittorrent clients won't open at all, is my ISP throttling them?

I noticed that the bittorrent client that I normally use, uTorrent, stopped launching. The icon would pop up on my dock for about 2 seconds, then proceed to disappear and nothing would happen. I have ...
1
vote
2answers
1k views

OSX run script to mount sshfs at login with a plist file

I've read through the man pages for plist and launchd.plist, as well as posts about using plist files to run scripts at login; but I can seem to get things working. My script location and ...
2
votes
1answer
4k views

Start Jenkins slave on Mac OS X as LaunchDaemon

I'am trying to start the jenkins' slave.jar on a Mac OS X 10.8.3 using a Launch Daemon so that it runs right after the machine is started. But I'm experiencing a mysterious problem: The LaunchDaemon ...
0
votes
2answers
112 views

Scheduling LaunchD for every other week

I would like LaunchD to launch a script every other week. The following works fine for every week, but how can I schedule it to only run every other week? <?xml version="1.0" ...
2
votes
1answer
2k views

How do I stop this message?

I’m on a Mac running OS X 10.6.x and I’m seeing this launchd error message repeated constantly in Console.app: How can I stop this error message? 3/3/12 3:35:03.002 PM ...
3
votes
1answer
669 views

inotifywait alternative command for Mac?

Something like $ macwatch dir_or_file cmd_to_execude_when_arg1_is_changed during which I do not have to write XML. I am aware of ...
1
vote
1answer
685 views

launchd WatchPaths directive stopped triggering job

I have a custom launchd job setup to run when a directory changes. It has been running for quite some time now, and up until recently (July 28, 2011) it has been working perfectly. I just realized ...
3
votes
1answer
1k views

Launchd execute command when folder contents modified or changed

For the past two days i've been trying to get a launchd plist to execute a script "program" when the contents of a folder on my desktop contents have modified or changed. I've gone through tons of ...
0
votes
1answer
619 views

Mac - Run script on startup and another on shutdown

I'm trying to figure out how to get two shell scripts to run automatically. One script to run when the mac is turned on. And another to run when the computer is about to shut down. I'm guessing for ...
0
votes
1answer
381 views

Using launchd for short non-daemon tasks

I want to create a "startup item" in os x. All of the recent documentation suggest that launchd should be preferred over traditional Startup Items. However, launchd seems to be geared towards ...
1
vote
2answers
1k views

Mac Leopard Launchd Daemon created with Lingon wont work

First off: Im absolutely new to Mac, so the problem might be really really basic. I have been trying to set up a Launchd Daemon to run at startup to run a Service via Mono.Frameworks. I used Lingon ...
0
votes
2answers
405 views

MDS Worker Not Found

I've removed MDS worker (to get rid of spotlight). In my console it looks like launchd is trying to find it. Anyone know how I could stop launchd for searching for spotlight? (ha) 10-12-10 9:39:27 AM ...
0
votes
1answer
631 views

Can you have a script run whenever you machine wakes up from sleep and/or when the screensaver unlocks? [duplicate]

Possible Duplicate: Automatically run a program when Mac wakes from sleep I'm interested in both.
1
vote
3answers
5k views

Setting environment variables in OS X /etc/launchd.conf

I'm trying to set some env variable in OS X 10.6 (/etc/launchd.conf) setenv M2_HOME /usr/share/maven setenv M2 $M2_HOME/bin setenv MAVEN_OPTS '-Xms256m -Xmx512m' M2 and MAVEN_OPTS are not working. ...
2
votes
1answer
1k views

launchd: Start script when entering a location

Question: Is there a way to configure a LaunchAgent to start (and keep alive) a script when entering a specific location? Example: When switching to the location "Office" i want to trigger a ...
7
votes
1answer
6k views

Stop a runaway launchd process on OS X Leopard

I created a launchd .plist file to in order to have a python script run every hour. I ended up editing and later deleting the .plist file ( in /Library/LaunchDaemons )... but somehow launchd is still ...
2
votes
2answers
3k views

Creating a Mac OS X launchd plist for vpnd

I need to create a launchd plist that causes vpnd to launch at startup. vpnd works fine when invoked from the command line, but I can't figure out how to make a plist that does the same thing. Can ...
2
votes
3answers
3k views

How to load system-wide daemon on Mac OS X

I'm trying to load my daemon-app with this command launchctl load /Library/LaunchDaemons/myPlistFileName It works fine, but only while my user is logged in on system. How can I load my deamon-app, ...
1
vote
2answers
2k views

Mac OS X: How do you set ipfw rules on startup?

How do you apply a list of ipfw rules at startup on Mac OS X? i.e. I have a list of rules like these that I'm applying manually. sudo ipfw add 00100 ... sudo ipfw add 00101 ... sudo ipfw add 00102 ...
8
votes
3answers
17k views

How do I run a launchd command as root

I have the following launchctl command as a .plist file. It's loaded and set to run once a day but, it needs to run as root and I'm not sure how to verify this. Also, this cron job basically CDs ...