image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old May 3rd, 2001, 05:26 PM
gumse's Avatar
Member
 
Join Date: Mar 2001
Location: Sweden
Posts: 403
Thanks: 0
Thanked 0 Times in 0 Posts
gumse is on a distinguished road
When putting the line:
*/1 * * * * root /usr/libexec/atrun
in root's crontab i get this mail every minute:

Message 1:
From root Thu May 3 23:12:00 2001
Date: Thu, 3 May 2001 23:12:00 +0200 (CEST)
From: root (Cron Daemon)
To: root
Subject: Cron <root@localhost> root /usr/libexec/atrun
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

zsh: command not found: root

This works fine on my other BSD boxes.
Any hints ?
__________________
G4 500 MP 1024 MB RAM
LaCie Electron 22" Display
OS X 10.3.9
iMacDV
MacMini
iSight
iPod + iPod Mini
Sony PC100E FireWire Cam
Static IP via a FreeBSD server/gateway
a lot of other Mac's running Macos 7.5 to 9.1 and NetBSD.
A Few Wintel's on the side (I only use them when I get paid by the hour)
Reply With Quote
  #2  
Old May 6th, 2001, 11:13 AM
sas sas is offline
Registered User
 
Join Date: Mar 2001
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sas is on a distinguished road
You are expecting a field "user" in your crontab and entered "root", but there's no such field in OSX's crontab. So you are trying to run the command:

root /usr/libexec/atrun

Just remove the "root" and you should be fine.

Oh, and by the way, there's a crontab gui called CronniX available at
www.koch-schmidt.de/cronnix

Sven
Reply With Quote
  #3  
Old May 6th, 2001, 05:17 PM
gumse's Avatar
Member
 
Join Date: Mar 2001
Location: Sweden
Posts: 403
Thanks: 0
Thanked 0 Times in 0 Posts
gumse is on a distinguished road
Thanks a lot,
Now my root-crontab works, and the at command to.

Another question, I have tried to create cron.deny and at.deny in /etc/cron.d and /usr/lib/cron , but it seems to be the wrong places, do you know where OS-X wants them ?
__________________
G4 500 MP 1024 MB RAM
LaCie Electron 22" Display
OS X 10.3.9
iMacDV
MacMini
iSight
iPod + iPod Mini
Sony PC100E FireWire Cam
Static IP via a FreeBSD server/gateway
a lot of other Mac's running Macos 7.5 to 9.1 and NetBSD.
A Few Wintel's on the side (I only use them when I get paid by the hour)
Reply With Quote
  #4  
Old May 7th, 2001, 04:44 AM
sas sas is offline
Registered User
 
Join Date: Mar 2001
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sas is on a distinguished road
Try

/var/cron/allow
/var/cron/deny

Have a look at "man crontab" for more details.

Sven
Reply With Quote
  #5  
Old May 7th, 2001, 09:28 AM
gumse's Avatar
Member
 
Join Date: Mar 2001
Location: Sweden
Posts: 403
Thanks: 0
Thanked 0 Times in 0 Posts
gumse is on a distinguished road
Hehe RTFM , serves me right, looked so much at man cron so I missed man crontab.

Again, it works perfectly, thanks Sven.
__________________
G4 500 MP 1024 MB RAM
LaCie Electron 22" Display
OS X 10.3.9
iMacDV
MacMini
iSight
iPod + iPod Mini
Sony PC100E FireWire Cam
Static IP via a FreeBSD server/gateway
a lot of other Mac's running Macos 7.5 to 9.1 and NetBSD.
A Few Wintel's on the side (I only use them when I get paid by the hour)
Reply With Quote
  #6  
Old May 7th, 2001, 05:13 PM
gumse's Avatar
Member
 
Join Date: Mar 2001
Location: Sweden
Posts: 403
Thanks: 0
Thanked 0 Times in 0 Posts
gumse is on a distinguished road
And remember to create /var/at/at.deny and the directory /var/at/spool, for the at command to work ok.
__________________
G4 500 MP 1024 MB RAM
LaCie Electron 22" Display
OS X 10.3.9
iMacDV
MacMini
iSight
iPod + iPod Mini
Sony PC100E FireWire Cam
Static IP via a FreeBSD server/gateway
a lot of other Mac's running Macos 7.5 to 9.1 and NetBSD.
A Few Wintel's on the side (I only use them when I get paid by the hour)
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting 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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 03:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright 2000-2010 DigitalCrowd, Inc.