I say on portable mac's because if you have a desktop that never gets shut off, these run automatically.
sudo periodic daily weekly monthly
sudo periodic daily weekly monthly
1159 users tagging and storing useful source code snippets
<string>/Users/widholmk/Library/PreferencePanes/XJanitor.prefPane/Contents/Resources/XJanitor.plstring>
<string>/usr/sbin/XJanitor.plstring>
You need to create an account or log in to post comments to this site.
Here's an example of my daily launch set up. As you can see, I changed it from launching at a specific time of day/week, to launching at an interval of 86400 seconds (24 hours). Launchd will automatically "catch up" on missed interval tasks.
or, if you're using the XJanitor.pl script to handle the tasks, you can do something like this, and all three maintenance tasks will run as necessary.:
If you're using XJanitor, remember to disable the com.apple.periodic-daily, com.apple.periodic-weekly, and com.apple.periodic-monthly by setting the disabled key to TRUE, like so: