|
#1
| |||
| |||
| 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? |
|
#2
| |||
| |||
|
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 |
|
#3
| ||||
| ||||
|
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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
|
#4
| ||||
| ||||
|
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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
|
#5
| ||||
| ||||
|
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. |
|
#6
| ||||
| ||||
|
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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
|
#7
| ||||
| ||||
|
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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
|
#8
| ||||
| ||||
|
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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
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 |