image
image

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

Reply
 
LinkBack Thread Tools
  #1  
Old September 1st, 2001, 09:17 AM
Registered User
 
Join Date: Aug 2001
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
kegger64 is on a distinguished road
crontab's output question

The output of root's cron jobs (/etc/daily, /etc/weekly, and /etc/monthly) all produce two e-mails to the root account. One is the output I expect, but the other is:

zsh: command not found: root

I haven't modified the default crontab supplied with OS X, other than to change the times when the jobs are executed.

Anybody got an explanation?
Reply With Quote
  #2  
Old September 4th, 2001, 02:54 AM
Registered User
 
Join Date: Aug 2001
Location: Santa Barbara Ca
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
ka6sox is on a distinguished road
I think you have a script that is running in Zshell that has a line that has "root" on it without anything else and the shell is complaining. You might see if for example the shell want's to su to root to run and the command flags are set wrong or something like that.

ka6sox
Reply With Quote
  #3  
Old March 11th, 2002, 09:37 AM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
kegger64,

have you found an answer to your question about:

zsh: command not found: root

in the daily cron output? I sure would like to know why this hapens too.
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
  #4  
Old March 11th, 2002, 11:22 AM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
this is generated by the daily cron running /etc/daily

in the script root only shows up in this snippet:

if [ -f /etc/security ]; then
echo ""
echo "Running security:"
sh /etc/security 2>&1 | sendmail root
fi

is this what is causing the error?

/etc/security does not exist on my system.
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
  #5  
Old March 11th, 2002, 11:34 AM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
yep, i am also having this problem, or what seems to look like a problem. i have not made any changes to the script. the article i mention below suggests some changes that i did not think were needed in my system. the old additon i made was to /var/root/.forward with the addition of my username.

i followed the directions in this article to get the daily e-mails from the cronjob (http://www.oreillynet.com/pub/a/mac/...minal_pt2.html) and noticed that one e-mail is always this:

From: System Administrator <root>
Date: Mon Mar 11, 2002 03:16:02 AM US/Mountain
To: root
Subject: localhost daily output

zsh: command not found: root
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Last edited by holmBrew; March 11th, 2002 at 11:58 AM.
Reply With Quote
  #6  
Old March 11th, 2002, 12:06 PM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
this is the output to console.log during the time that /etc/daily is run by cron:

Mar 11 03:15:02 localhost sendmail[332]: My unqualified host name (localhost) unknown; sleeping for retry

Mar 11 03:15:03 localhost sendmail[337]: My unqualified host name (localhost) unknown; sleeping for retry

Mar 11 03:16:02 localhost sendmail[332]: unable to qualify my own domain name (localhost) -- using short name

Mar 11 03:16:03 localhost sendmail[337]: unable to qualify my own domain name (localhost) -- using short name

Mar 11 03:16:04 localhost sendmail[357]: My unqualified host name (localhost) unknown; sleeping for retry

Mar 11 03:17:04 localhost sendmail[357]: unable to qualify my own domain name (localhost) -- using short name

does this make sense? could it have something to do with the other zsh thing?
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
  #7  
Old March 11th, 2002, 10:12 PM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
so, from ls -la /var/cron/tabs

[sam:~] holmBrew% sudo ls -la /var/cron/tabs
total 8
drwx------ 3 root wheel 58 Feb 8 09:23 .
drwx------ 3 root wheel 264 Dec 14 19:17 ..
-rw------- 1 root wheel 942 Feb 8 09:23 root
[sam:~] holmBrew%

so what does this mean?

everything else seems ok.
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
  #8  
Old March 11th, 2002, 11:17 PM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
so, i SHOULD delete the one in /private/var/cron/tabs/root ?

can i just rename it to something that will be ignored?
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
"ls" command question? pwharff Unix & X11 4 September 20th, 2003 10:28 PM
nfs question hgreenfi Unix & X11 2 July 30th, 2002 04:59 PM
UNIX related things... (tr, cut, awk, and permissions) simX Apple News, Rumors & Discussion 5 December 19th, 2001 03:33 AM
unix newbie question jmmistrot Mac OS X System & Mac Software 3 October 12th, 2001 02:49 AM
command args missing in 'ps' output snoozer Mac OS X System & Mac Software 2 September 29th, 2001 02:49 PM


All times are GMT -5. The time now is 08:56 AM.


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