HomeAppleWhat went improper with my launchd plist?

What went improper with my launchd plist?


I arrange a launchd plist to run a shell script each morning at 8 AM

(see Is there a simple strategy to mechanically schedule a transfer of information matching a sure sample from a person listing to a USB drive? for context).

Yesterday, I created the plist, put it in /Library/LaunchDaemons, and did a did a launchctl load /Library/LaunchDaemons/sweep.plist (both sudo’d or in a sudo bash) as soon as it was in place.

BUT IT DIDN’T WORK! It is known as “sweep.plist,” and it’s as follows:

<?xml model="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Pc//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist model="1.0">
<dict>
<key>Label</key>
<string>sweep</string>
<key>Program</key>
<string>/Customers/europa/sweep.sh</string>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>8</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>

I am completely sure that after I did the launchctl load yesterday, “sweep” confirmed up in a launchctl listing, however my shell script did not execute, and the daemon now not reveals up after I do a launchctl listing.

New: I checked the system log, and certain sufficient, there was an error message. Unsure what to do about it:
Might 10 08:00:05 Europas-Mac-mini com.apple.xpc.launchd[1] (sweep[1299]): Program specified by service will not be a Mach-O executable file.

Wanting on the shell script with a ls -l, it reveals permissions as -rwxr-xr-x@

Any concept what I may have achieved improper, or the place to search for the issue?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments