1 |
On 24 April 2006 06:08, Anthony E. Caudel wrote: |
2 |
> For the last few days I have had a cron problem. It started when I was |
3 |
> trying to to find a way to modify the crontab by a script. Don't know |
4 |
> what I did but ever since, every cron script (root's only) emails me a |
5 |
> notice like the following: |
6 |
> |
7 |
> =========================================================== |
8 |
> From root@×××××××××.localdomain Fri Apr 17 23:50:01 2006 |
9 |
> X-Original-To: root |
10 |
> From: root@×××××××××.localdomain (Cron Daemon) |
11 |
> To: root@×××××××××.localdomain |
12 |
> Subject: Cron <root@hilary> root test -x /usr/sbin/run-crons && |
13 |
> /usr/sbin/run-crons |
14 |
> X-Cron-Env: <SHELL=/bin/bash> |
15 |
> X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin> |
16 |
> X-Cron-Env: <MAILTO=root> |
17 |
> X-Cron-Env: <HOME=/> |
18 |
> X-Cron-Env: <LOGNAME=root> |
19 |
> X-Cron-Env: <USER=root> |
20 |
> Date: Fri, 7 Apr 2006 23:50:01 -0500 (CDT) |
21 |
> |
22 |
> /bin/bash: root: command not found |
23 |
> =========================================================== |
24 |
> |
25 |
> Interestingly, all the scripts run fine. It's just that I get emails |
26 |
> every ten minutes (the frequency of the "test -x /usr...") and it's |
27 |
> driving me crazy. |
28 |
> |
29 |
> Can't figure that last line. Is something trying to run the command |
30 |
> "root"? |
31 |
> |
32 |
> I am using vixie-cron and this is root's crontab: |
33 |
> |
34 |
> ============================================================= |
35 |
> # Global variables |
36 |
> SHELL=/bin/bash |
37 |
> PATH=/sbin:/bin:/usr/sbin:/usr/bin |
38 |
> MAILTO=root |
39 |
> HOME=/ |
40 |
> # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly |
41 |
> 0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly |
42 |
^^^^ |
43 |
|
44 |
This is trying to run the command "root" which doesn't exist. |
45 |
|
46 |
Uwe |
47 |
|
48 |
-- |
49 |
Why do consumers keep buying products they will live to curse? |
50 |
-- |
51 |
gentoo-user@g.o mailing list |