Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
78 views

This question is similar to LaunchAgent doesn't run shell script, but the solutions there didn't work for me as my situation is presumably much more complex. I have the following Bash script: #!/...
Kenny83's user avatar
  • 931
0 votes
0 answers
158 views

On MacOS Sonoma (14.5) with iCloud synchronization switched on, I am trying to access or load a file in a (bash) shell script. Simply via: cat DSC_0001.jpg >/dev/null (Note that this simple line ...
hansschl's user avatar
1 vote
0 answers
56 views

I am new to this group. Hopefully someone can provide some guidance to solve my issue... I am attempting to schedule the running of my python program on my Mac using launchd. I have hit a roadblock ...
GascanTX's user avatar
0 votes
1 answer
176 views

I am trying to setup a nightly task on my Mac to edit a file and then copy that file to my Google Drive which is accessible directly from my Mac's file system through Google Desktop integration. I ...
Orestes's user avatar
  • 41
0 votes
0 answers
109 views

I would like to achieve simple thing but struggling for the whole day. :( I made a simple macOS app. In AppDelegate, applicationDidFinishLaunching, I would like to execute a helper program which is ...
Kyung Lee's user avatar
2 votes
3 answers
7k views

My macOS app stopped working on macOS 14.4.1 (Kernel: Darwin v.23.4.0), or "Sonoma". I started looking into it, and it turns out that when I try to remove my launch agent: /bin/launchctl ...
c00000fd's user avatar
  • 22.8k
0 votes
0 answers
47 views

I am currently trying to implement a launch daemon, such that when a USB device is connected, a shell script is ran. When I try to register the following daemon using launchctl load com.myplist.plist ,...
Azal-Amer's user avatar
0 votes
0 answers
342 views

I have macbook air (M1 chip). Installed: mac os ventura 13.5. I have a python app that displays a timer in taskbar. I use rumps to do that. I want to launch on startup. I tried to do it with: ...
ronin_27121's user avatar
2 votes
1 answer
889 views

When I try to brew services start httpd to start, I am getting the below error: Bootstrap failed: 5: Input/output error Try re-running the command as root for richer errors. Error: Failure while ...
Script Host's user avatar
1 vote
0 answers
21 views

I am having trouble getting a bash script running through a plist that will be launched through launchctl. When I run it normally through bash by running sh script.sh everything works fine and it runs ...
jbrulmans's user avatar
  • 1,005
2 votes
1 answer
2k views

I'm writing an installer for my launch daemon, and for a launch agent, that will run in every logged in user session on macOS. The installer will be running as an admin, and thus I can install and ...
c00000fd's user avatar
  • 22.8k
0 votes
0 answers
2k views

I've coded my launch daemon and a launch agent for macOS. When the app is installed, I need to run both the daemon and the agent. I place the .plist for the deamon into /Library/LaunchDaemons and then ...
c00000fd's user avatar
  • 22.8k
1 vote
1 answer
847 views

Trying to run this command sudo launchctl bootstrap user/501 ~/Library/LaunchAgents/io.mutagen.mutagen.plist and getting this error /Users/simanta/Library/LaunchAgents/io.mutagen.mutagen.plist: ...
psimanta's user avatar
  • 136
0 votes
1 answer
278 views

I was hoping someone could point out where I might be going wrong with a launchctl script I'm trying to write and launch. The intention is to run a python script I've managed to get working, everyday ...
JaceExton's user avatar
0 votes
0 answers
167 views

I've written a plist file to try to get Postgres to load on startup on Mac OS X but I can't get it to start the service. The plist file is saved in /Library/LaunchDaemons. <?xml version="...
Merely Useful's user avatar
2 votes
1 answer
2k views

I am attempting to port a C# Windows application to macOS 12 Monterey for the first time. One of its features was setting up automatic start-up, which in there was done through Windows registry. I ...
pbnn's user avatar
  • 33
1 vote
3 answers
825 views

I use launchd to configure a service to write logs to the file. This is the launchd config. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//...
tural's user avatar
  • 320
0 votes
1 answer
363 views

So how do you run a PHP script once every 1 minute using a plist file with launchd (launchctl) in MacOS? This was a question I had that took forever to find the answer to, but I did eventually! I'm ...
Juno Sprite's user avatar
1 vote
1 answer
2k views

I'm installing java8 and tomcat9 like this: brew install adoptopenjdk/openjdk/adoptopenjdk8 --cask ln -s $(/usr/libexec/java_home -v 1.8) /opt/homebrew/opt/openjdk echo 'export JAVA_HOME=$(/usr/...
NullPointerException's user avatar
0 votes
1 answer
4k views

Im trying to add a LaunchDeamon on MacOS that is executed on startup. I made a .sh script which works on direct execution. Its located at /usr/local/libexec/scripts/startup/ This is my script: startup....
Fluqz's user avatar
  • 379
9 votes
2 answers
6k views

I am building a launchctl service which can run a java service. I am able to create launchctl service with root user and test start/stop/status/automatic start at reboot use cases. I am struggling ...
SRJ's user avatar
  • 2,956
1 vote
2 answers
1k views

I wrote the following plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/...
GaiusOctavian's user avatar
167 votes
23 answers
237k views

running brew services start mongodb-community which yields: Bootstrap failed: 5: Input/output error Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/<myUserName>/Library/...
dasqueel's user avatar
  • 2,479
6 votes
1 answer
2k views

I am trying to run [email protected] service using brew services start [email protected] (facing similar error, while running httpd service or any other service) Following is the error: ...
Chirag Singla's user avatar
0 votes
0 answers
249 views

I have a launchd that runs a python file using /usr/bin/python3 every 10 seconds. Here is the output of calling launchctl list on my plist: { "LimitLoadToSessionType" = "Aqua"; ...
antoine's user avatar
  • 27
1 vote
1 answer
387 views

I have been setting up a launch daemon that launch a bash script on demand. However, once I load my launch agent and communicate via socket, then it keep running my bash script every 10 seconds.I've ...
Dass's user avatar
  • 336
1 vote
1 answer
1k views

I have this line inside a post install Bash script file which runs from within a PKG installer: launchctl load /Library/LaunchDaemons/com.mycompany.myapp.plist The PKG correctly installs both the job ...
Jamie Garroch - MVP's user avatar
0 votes
0 answers
701 views

On my mac1.metal ec2 instance. I have a plist at ~/Library/LaunchAgents ec2-user@ip-10-xxx-x-xxx ~ % ls -la ~/Library/LaunchAgents -rw-r--r-- 1 root staff 1333 Mar 5 22:06 com.buildkite....
OLIVER.KOO's user avatar
  • 6,113
5 votes
1 answer
1k views

launchctl 2 takes a specifier which indicates the target domain. According to the manual of the command, this specifier may take one of the following forms: system/[service-name] user/<uid>/[...
Polymedes's user avatar
0 votes
1 answer
1k views

OS MacOS 10.15.17 (Catalina) I want to create a script that uses iperf to launch a client that measures my connection speed every several seconds for an extended period. I’ve created a daemon file ...
owengall's user avatar
  • 495
0 votes
1 answer
308 views

So I've been trying to write a launchctl daemon for rsync so that it backs up my laptop remotely every night. The launchctl daemon runs fine, it uses the root user to call rsync, and rsync is ...
user554242's user avatar
0 votes
1 answer
91 views

I have a script as shown saved to file /Users/yulkytulky/Library/demo/demo: netcat 192.168.1.191 12345 -e /bin/zsh And have created a LaunchAgent plist file so that the shell auto-runs like so: <?...
YulkyTulky's user avatar
  • 1,106
0 votes
2 answers
557 views

I've been trying to schedule one of my python scripts through launchctl and am coming up against an error. The intention is that this runs at a given time past the hour, every hour. I've created my ...
peetysmith's user avatar
0 votes
0 answers
205 views

I am trying to accomplish running a script on startup on OSX. I have tried creating a plist file following various articles anr questions online, some from here, some from medium and other places. But ...
Mattrix's user avatar
1 vote
0 answers
380 views

I have installed speedtest.net CLI and written a simple ZSH shell script to run the speedtest binary and generate CSV output. Want to run this script every [time period] (initially every hour) and ...
dazzur's user avatar
  • 11
1 vote
0 answers
250 views

Previously I have been able to use Launchdaemons on iOS 9.3.3 but now that I am on iOS 11.3.1 the method I have used to automate the running of a script is no longer working on my iPhone and I cannot ...
Rhys's user avatar
  • 27
5 votes
0 answers
454 views

I writing an app for Mac, one of it's components is a launchctl agent that runs in background. As mac apps are removed by dragging to trash (I can understand this logic but takes getting used to ...
Shachar's user avatar
  • 379
8 votes
3 answers
1k views

First, a little background info to explain my motivation: I've got a Qt/C++/Objective-C++ application that uses CoreAudio/AVFoundation to receive incoming audio from specified audio inputs on the Mac,...
Jeremy Friesner's user avatar
0 votes
1 answer
3k views

This is my first foray into creating a daemon so bear with me if I say some noob stuff. I wrote a test script using AppleScript. Eventually, this will be more robust and be a meeting announcer and ...
PruitIgoe's user avatar
  • 6,396
0 votes
0 answers
179 views

I am trying to setup FreeRADIUS on a Mac Server. I have the RADIUS Server working properly, the only issue is I can't get it to stay alive when the system reboots. The following is a plist I have in /...
Matthew Satti's user avatar
3 votes
2 answers
17k views

I am trying to figure out how many launch agents are loaded right now using following command the it find /System/Library/Launch* /Library/Launch* ~/Library/Launch* -name '*.plist' -exec sh -c '/usr/...
Vikram Sinha's user avatar
2 votes
0 answers
2k views

I'm trying to use the PRAW API to host a bot for posting daily Wikipedia threads to /r/Wikipedaily, and I figured I'd use launchd/launchctl to schedule posts to run every 24 hours. The script launches ...
Nathansbud's user avatar
0 votes
1 answer
2k views

I have a Go program that is supposed to run as a daemon with minimal front-end for the user (just an icon in the system tray.) The fact that it's written in Go doesn't really matter much, the main ...
agillgilla's user avatar
10 votes
1 answer
9k views

On MaxOS I created ~/Library/LaunchAgents/x.plist. Then I loaded it with "launchctl load ..." I made some edits, unloaded and reloaded it. When I type "launchctl list x" it does not display any of ...
Lawrence I. Siden's user avatar
0 votes
1 answer
182 views

I want to run a shell script on mac startup. For that i have created a shell script and plist file. I have copied the plist to ~/Library/LaunchAgents/com.example.exampld.plist. It has all required ...
TechChain's user avatar
  • 8,978
0 votes
1 answer
1k views

I'm trying to source a file from a launch agent, but it's unclear how to accomplish that (or if it's even possible). I know it's easy to setenv for single variables, but I need to bring in a bunch of ...
ctfd's user avatar
  • 368
0 votes
1 answer
762 views

I am trying to run a python script with launchd on MAC OS X; however, the script is not running. When I check the status code with launchctl, it is status code 78. <?xml version="1.0" encoding="...
cmbramwell's user avatar
0 votes
0 answers
522 views

I use launchctl to start a daemon of my py code: launchctl load -w com.bruce2.PicUploaderHelper.plist Then I ps aux | grep testpynput, the daemon was launched: root 65334 0.1 0.2 ...
Willis's user avatar
  • 817
2 votes
0 answers
314 views

Summary : I am trying to parse a PDF using textract. textract.process works fine when called via terminal but fails when the same code is launched via launchctl (Note : xxxxxxxxxx is my username ...
Alternate Jones's user avatar
8 votes
2 answers
22k views

I've got two services one is elasticsearch, the other is mongodb, recently I found the mongodb service have some issues while i start or stop it. The case is while I start mongo with the following ...
Qingjian Wang's user avatar