Running a script as a LaunchAgent in Ventura 13.01

I am trying to sync my documents to my local git server (an old Mac mini).

The script is located as a symbolic link in /usr/local/bin .

Using the script stand alone is working just fine, but I want it to run at startup and at 2 o'clock in the morning.

The plist file is Ok, according to Xcode.


But the script does not run at startup or in the early morning.


(In older versions of OS X this functioned well)

MacBook Pro

Posted on Nov 26, 2022 1:00 AM

Reply

Similar questions

7 replies

Nov 26, 2022 8:20 AM in response to cobrp

And additional help with Launchd configuration syntax is here. Use the ~/Library/LaunchAgents folder (or if missing, create it) to contain your *.plist file. You will need a full path to your script in that plist file. You should have RunAtLoad set to True, and a StartCalendarInterval set to 2 according to the preceding link. RunAtLoad will require a login event to trigger it as an Agent.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Running a script as a LaunchAgent in Ventura 13.01

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.