If all goes well at the scheduled time (and if you’ve elected to save a report), the report should show up on your desktop after permissions have been repaired.īefore exiting CronniX, click on the Save button to save the changes you made to the crontab. Unfortunately, to test it, you’ll have to wait until the time it is supposed to run - CronniX’s handy “Run Now” command (available from the Task menu) doesn’t always work for system crontab entries. Your new scheduled event will appear in the crontab. Make sure the Prepend “/usr/bin/open” option is not selected, and then click on the New button to create the new event. (Replace user name with your user name.) Now your Mac will save a text report of repairs on the Desktop. I like to see this report, so I’ve used the following command instead (it should all be on one line, and case is important):ĭiskutil repairPermissions / > /Users/user name/Desktop/permissionrepairs.txt Finally, select the Fr (for Friday) option. The Month and Day Of Month options are unimportant, so put a checkmark in those options’ boxes, or type an asterisk (*) in the value field - this tells cron to execute the event for any value of these fields. These two fields tell cron to execute this action at 10:15 a.m. (Whatever day and time you choose, make sure it’s a time when your Mac will be on and awake.) Using my setup as an example, enter 15 in the Minute field and 10 in the Hour field (cron uses 24-hour time, so 3 p.m. I run Repair Permissions once a week, Friday mornings at 10:15 a.m. The resulting schedule window lets you create a schedule for the desired action and then designate that action. Right now, you want to create a new entry, so click on the New button. You’ll notice that the default crontab already has three entries I’ll talk about them later. (Because these are system-level tasks, you’re going to edit the system-level crontab however, users also have individual crontabs.) Launch CronniX and then choose File: Open System Crontab. To automate an action with cron, you need to open a crontab (a cron table, or schedule) and then create a new entry - much as you’d create a repeating calendar appointment - that tells cron what to do and when.ĬronniX gives you an easy-to-use interface for working with crontabs.
0 Comments
Leave a Reply. |