Click here to return to the 'Using the 'cron' scheduler' hint |
Chrono Curse Mac Os Download
'com.apple.launchd1 (0x10c650.cron14768): Could not setup Mach task special port 9: (os/kern) no access' Hope this helps some people out. PS: I used it to create template mails from an automator script I ran each morning to find people I know what has a birthday that same day. ChronoSync is the professional choice for periodic backups, bootable drive clones, and folder and file synchronizations. Target any device or folder visible in Finder such a volume, thumb drive, NAS, disk image, select cloud services, server or (with ChronoAgent) another Mac!
I should note that there is a gui frontend for editing your crontab available. It's called CronniX, see www.koch-schmidt.de/cronnix. Incidentally, the author is called Sven, too... ;-)
Thanks Sven - it's posted somewhere here as a tip, too. Good program that makes configuring cron much more straightforward!
-rob.
That URL is now spam.
If you cp /etc/crontab and use that as your base crontab, make sure you don't keep the user specification. I changed 'root' to my user and spent hours trying to figure out why my crontab wouldn't work. It was trying to run my username as a command!
On user specific crontabs, do not specify a user to run the command as. The crontab located at /etc/crontab is the system-wide crontab. Root is specified in each so those commands are run as root. The user, root, doesn't have a crontab at all!!
This gave me a headache for a while, but I'm glad I understand it now.
Thankyou so much for that.. Just my first time at setting up a cron for an rsync and taken me two hours of searching to find out why nothing was happening... You are a genious!
Cheers
Some other problems you may have:
When I opened up a GUI application using crond:
sh /usr/bin/open ~/Application.app
It did not seem to work.
I changed it to:
/usr/bin/open ~/Application.app >& /dev/null
And it worked.
I suspect not having the redirect-all at the end causes security problems as I not sure what uid's console is attached to the cron process at that time, and may be the cause of an error I received:
'com.apple.launchd[1] (0x10c650.cron[14768]): Could not setup Mach task special port 9: (os/kern) no access'
Hope this helps some people out.
PS: I used it to create template mails from an automator script I ran each morning to find people I know what has a birthday that same day.
Oh wow, I hope that works! I've been so frustrated with cron and iCal script alarms not working in the middle of the night!
Rob
Rather than copy the system cron file and edit in a text editor you can use the commandcrontab -e
which brings up your crontab for editing in the 'vi' editor. When you save your changes it will then parse the crontab you have set up and warn you if there are any obvious errors in it.
man crontab
man 5 crontab
man vi
edit
command line tool can be used to edit the crontab file, following the setup instructions on its man page -- note that you have to write a little 'helper' shell script to invoke Chrono Curse Mac Os Catalina
edit
with the -w
option in order to work around a limitation in crontab. I've used this for years, but it broke suddenly with the TextWrangler 3.5.3 update, with the error 'crontab: temp file must be edited in place'. This is because the new version of TextWrangler brought in some code from BBEdit which observes a new expert preference. To fix it, quit TextWrangler and execute the following in Terminal: I can't speak to the implications of disabling safe saves, however.
crontab file locations under Mac OSX 10.6 are now:
/usr/lib/cron/tabs
Chrono Curse Mac Os 11
Found this old thread and while most of it seems to be helpful to me, there are some things I can't seem to make happen.
I'm completely new to *nix operating systems and just now getting into the guts of the OSX OS, so vim and the Terminal are fairly new to me.
That said, I have a need to run a cron process in root and I can't seem to make it happen.
I can't seem to get into the /usr/lib/cron/tabs directory, and I can't figure out what I need to do to read the cron.deny file in the /usr/lib/cron directory.
Thanks for any help.
Any vi tutorials or anything as well as any bash tutorials would be helpful as well.