58 lines
1.5 KiB
Markdown
58 lines
1.5 KiB
Markdown
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Label</key>
|
|
<string>com.sofascore.grapper</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>/Users/hermanntelser/Sites/nuhodds_fi4/apple_damon.sh</string>
|
|
<string>2</string>
|
|
</array>
|
|
<key>StartCalendarInterval</key>
|
|
<dict>
|
|
<key>Hour</key>
|
|
<integer>2</integer>
|
|
<key>Minute</key>
|
|
<integer>15</integer>
|
|
</dict>
|
|
</dict>
|
|
</plist>
|
|
|
|
|
|
1) Sicher an diesem Ort:
|
|
Für einen bestimmten Benutzer: ~/Library/LaunchAgents/
|
|
Für alle Benutzer (Systemweit): /Library/LaunchAgents/
|
|
Für das gesamte Betriebssystem: /Library/LaunchDaemons/
|
|
|
|
2) Die Datei: Speichern Sie den Code oben in einer
|
|
.plist-Datei (z.B. com.sofascore.grapper.plist).
|
|
|
|
3) Aktivieren: Laden Sie den Prozess im Terminal mit dem Befehl:
|
|
# sudo launchctl load -w /Library/LaunchDaemons/com.sofascore.grapper.plist
|
|
4) Dieser script wir nur ausgeführt wenn der PC nicht schläft!
|
|
|
|
|
|
1) Type the following command to wake your Mac at 8:00 AM every Monday through Friday:
|
|
# sudo pmset repeat wake MTWRFSU 20:00:00
|
|
|
|
M = Monday
|
|
T = Tuesday
|
|
W = Wednesday
|
|
R = Thursday
|
|
F = Friday
|
|
S = Saturday
|
|
SU = Sunday
|
|
MTWRF = Weekdays only
|
|
X = Every day
|
|
|
|
2) sudo pmset repeat wake MTWRF 02:20:00
|
|
|
|
3) Check the current schedule: Type
|
|
# pmset -g sched
|
|
in Terminal and press Return.
|
|
|
|
4) Cancel the schedule: Type
|
|
# sudo pmset repeat cancel
|
|
and press Return. |