Apple Mac OS X Server Command-Line Spezifikationen Seite 26

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 58
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 25
The rst crontab entry repairs disk permissions for the MacHD volume at 18:30 every
day, Monday through Friday:
30 18 * * 1-5 diskutil repairPermissions /Volumes/MacHD
The second crontab entry schedules a repair volume operation to run at 23:50 every
Sunday:
50 23 * * 0 diskutil repairVolume /Volumes/MacHD
Scheduling tasks with launchd
You can use launchd instead of cron to schedule tasks. With launchd, if a task is
skipped because the computer is shut o or asleep, the task is added to the queue
when the computer comes back online. To use launchd to schedule timer-based jobs,
use the StartCalendarInterval or StartInterval key.
For more information about launchd, see the launchd man page.
26 Chapter 3 Scripting the Command Line
Seitenansicht 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 57 58

Kommentare zu diesen Handbüchern

Keine Kommentare