Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Cron on OSX

Cron on OSX
Thread Tools
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jan 31, 2002, 12:05 AM
 
What user are OSX's housekeeping cron jobs (log rotation, etc) run under? I can't find them in the crontabs for any of the users listed in NetInfo.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
johann
Forum Regular
Join Date: Nov 2000
Location: Seattle, Wa, USA
Status: Offline
Reply With Quote
Jan 31, 2002, 03:59 AM
 
root runs them kinda...

there is no crontab for the user root, but crontab is configured to run anyting in this file /etc/crontab as root.

it's kinda like linux has the cron.daily folder and if you put shell scipts in there, cron will run them.

hope that helped

good luck
     
Arkham_c  (op)
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jan 31, 2002, 11:51 AM
 
Thanks, that's good to know! My background is Linux and SYSV, so BSD is a new experience for me. I'm learning new things all the time.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Mactoid
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Jan 31, 2002, 06:23 PM
 
Originally posted by johann:
<STRONG>there is no crontab for the user root</STRONG>
Kinda trivial, but there actually is a root crontab, just like for every other user, in addition to the /etc/crontab file.

I prefer using the regular root crontab file because it's easily accessible with the crontab command, while /etc/crontab is unfortunately not.
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:48 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,