A system for starting, stopping, and managing automated processes.

learn more… | top users | synonyms (2)

1
vote
2answers
885 views

Automatically backup JailBreak iPhone DCIM photo directory

Hi I heard that you can write cron job into plist and put it to JB iPhone /Library/LaunchDaemons folder in plist format I would like to backup the photo folder every 300 seconds, so I put a ...
1
vote
1answer
837 views

How to automate execution locate.updatedb by using a bash script

I am looking for a bash set of commands that will enable me to schedule the execution of /usr/libexec/locate.updatedb once every day. Please respond only with a set of command line commands, because ...
4
votes
3answers
5k views

Mac won't boot: Way to mount drive and delete one file?

My macbook is currently a brick. I added a /etc/launchctl.conf file that must be malformed. The OS now crashes even when attempting to start in safe mode: "launchd System bootstrapper has crashed: ...
2
votes
2answers
1k views

Run plist command every 5 seconds

I have the following plist file in my User/Library/LaunchAgents folder. It presses the "g" key every 60 seconds. My question is, how can I change this to press the "g" key every 5 seconds? ...
1
vote
1answer
1k views

prevent launchctl from starting a anonymous process

I have installed dnsmasq and now I want to be able to start it with launchctl. The problem is that every time I start the app launchctl starts an anonyous process instead of using the specified label. ...
13
votes
3answers
2k views

Why is cron being deprecated?

I just found out that cron has been deprecated in Mac OS X. Why is this, and will it eventually be completely removed from future releases?
8
votes
2answers
3k views

Automatically delete a folder daily

Is there a way to automatically have a folder deleted every day at 4am? I'm running 10.6.7.
4
votes
3answers
829 views

Can't quit app launched through launchd

As it says in the title, "Can't quit app launched through launchd"—or more precisely, I can quit it, but it then automatically restarts again. Background: I prefer to use BusyCal, not iCal, but ...
4
votes
1answer
7k views

Running a command whenever Mac boots up with launchctl/plist

I need to run nohup nice synergys -f --config ~/bin/conf/synergy.conf & command whenever the computer boots up. As is written in this post, I came up with the following plist code. <?xml ...
4
votes
1answer
2k views

Stopping a macports installed mysql daemon

I'm trying to reset my root password on a macports installed MySQL on OS X. But none of the ways to do this that I can find works, for various reasons. One reason common to all is that I can't stop ...
4
votes
2answers
1k views

How to automate DropBox startup without logging in

I'd like to have DropBox running under multiple user accounts on a Mac, even after a reboot. The Mac auto logs in as one user, not me. How to best achieve this?
41
votes
5answers
37k views

Why am I getting a “dubious ownership of file” error when Launch Agent runs my .plist file?

I have a Launch Agent configured to run a .plist file for example: /Library/LaunchAgent/foo.plist. Inside this .plist, it is set to run during LoginWindow and Aqua. When I attempt to launch my ...
0
votes
1answer
214 views

How do I launch an app at start up but as a specific user?

I want to launch an app at login but have it running as a specific user. Here's the use case: I turn on my Mac and login in as Ben. In the background iTunes is launched for Bill. Ben can launch his ...
4
votes
2answers
2k views

How can I stop com.apple.launched from attempting to start a service we uninstalled?

My office used to use JungleDisk Workgroup service to exchange large files. We've moved on to a new solution and I uninstalled the client according to their instructions, but I noticed today in the ...
4
votes
3answers
2k views

Automatically relaunch a closed application

I have an application that opens when I login. Is there a way to relaunch it automatically if it crashes or if I close it inadvertently? (the application in question is Transmission if there is any ...
15
votes
4answers
3k views

Can anyone recommend a good tutorial for writing (from scratch) a cron-style launchd job?

I've got a fairly simple job that I'd like to run every hour. I could do it using cron, but I thought I'd use this to learn about launchd, since I hear good things about it. I've got the man ...
3
votes
2answers
585 views

LaunchDaemon not recognised

I've installed CouchDB via MacPorts. Now I want to start it when my Mac boots, so I executed the instructions given in the install process: sudo launchctl load -w ...