Skip to main content
0 votes
1 answer
175 views

I have written a shell script that I want to run every time I log on to my Macbook, and I'm trying to execute it via launchd. My script is not a persistent daemon, it's supposed to write some text to ...
Tom's user avatar
  • 9,219
1 vote
1 answer
199 views

I have a php shell script that runs at scheduled intervals via launchd. The script has a 2 minute php timeout, but I understand that time spend in curl_exec( ) doesn't count towards that. But I also ...
l008com's user avatar
  • 1,775
0 votes
0 answers
55 views

I am trying to create a Launch Daemon that launches whenever I log in. I know that launch agents are better suited for this job, but I want to accomplish it with a launch daemon instead because It's ...
tandem1032's user avatar
0 votes
0 answers
216 views

I'm creating a launch agent using the following method: @implementation AppDelegate { SMAppService *agentService; } - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { ...
Bri Bri's user avatar
  • 2,052
0 votes
0 answers
83 views

I have a launchagent that I've been using for well over 10 years. Once a week it cleans up my desktop, moving any files it finds to a "Desktop_Archive" folder. Unfortunately, while the ...
Mike Heinz's user avatar
  • 1,835
1 vote
1 answer
142 views

I have run out of things to look for or don't know where to look anymore. I have a perl script that checks a particular website to see if it has changed, and throws an alert one way or another. ...
Harry_'s user avatar
  • 65
0 votes
1 answer
145 views

I am facing an issue with a bash script run by a LaunchDaemon on macOS, which is supposed to change the permissions of the Google Chrome application at specific times. The script runs correctly when ...
Atrox's user avatar
  • 85
1 vote
0 answers
69 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
74 views

I'm writing a bash script that enables and disables sleeping on my MacBook based on whether my headphones are connected by bluetooth or not, so I can close the lid and listen to music without the ...
Klumpy7's user avatar
  • 123
2 votes
0 answers
72 views

I have this application that is divided in 3 parts. A server that handles all the networking code A agent that handles all System related code A manager (NSApplication) to interact with the other two ...
Gama's user avatar
  • 384
0 votes
0 answers
129 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
0 votes
0 answers
473 views

I have a script that I would like to run every day at 4 AM. It downloads data to my user folder, fits some models, and saves files within my user directory. The script is a shell script, with one ...
Ike348's user avatar
  • 180
-1 votes
1 answer
70 views

The script sorts the download folder into folders with date. #!/bin/bash eDate=$(date +%s) #Epochal date cDate=$(date +%Y-%m-%d) ...
Atalantia's user avatar
0 votes
1 answer
74 views

Updated; I found the path to npx using type npx I would like to run a TypeScript script from a launchd. I'm successfully running the script directly using /usr/local/bin/npx ts-node /path/to/script.ts ...
Ben Robinson's user avatar
  • 1,905
1 vote
1 answer
3k views

There's a plist in /System/Library/LaunchAgents/com.openssh.ssh-agent.plist. I've spent a couple hours trying to get it to start at boot/login, but I have had no luck yet. Most of my time has been ...
devoutsalsa's user avatar
  • 1,200

15 30 50 per page
1
2 3 4 5
44