1 |
For the last few days I have had a cron problem. It started when I was |
2 |
trying to to find a way to modify the crontab by a script. Don't know |
3 |
what I did but ever since, every cron script (root's only) emails me a |
4 |
notice like the following: |
5 |
|
6 |
=========================================================== |
7 |
>From root@×××××××××.localdomain Fri Apr 17 23:50:01 2006 |
8 |
X-Original-To: root |
9 |
From: root@×××××××××.localdomain (Cron Daemon) |
10 |
To: root@×××××××××.localdomain |
11 |
Subject: Cron <root@hilary> root test -x /usr/sbin/run-crons && |
12 |
/usr/sbin/run-crons |
13 |
X-Cron-Env: <SHELL=/bin/bash> |
14 |
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin> |
15 |
X-Cron-Env: <MAILTO=root> |
16 |
X-Cron-Env: <HOME=/> |
17 |
X-Cron-Env: <LOGNAME=root> |
18 |
X-Cron-Env: <USER=root> |
19 |
Date: Fri, 7 Apr 2006 23:50:01 -0500 (CDT) |
20 |
|
21 |
/bin/bash: root: command not found |
22 |
=========================================================== |
23 |
|
24 |
Interestingly, all the scripts run fine. It's just that I get emails |
25 |
every ten minutes (the frequency of the "test -x /usr...") and it's |
26 |
driving me crazy. |
27 |
|
28 |
Can't figure that last line. Is something trying to run the command "root"? |
29 |
|
30 |
I am using vixie-cron and this is root's crontab: |
31 |
|
32 |
============================================================= |
33 |
# Global variables |
34 |
SHELL=/bin/bash |
35 |
PATH=/sbin:/bin:/usr/sbin:/usr/bin |
36 |
MAILTO=root |
37 |
HOME=/ |
38 |
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly |
39 |
0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly |
40 |
# |
41 |
1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily |
42 |
# |
43 |
15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly |
44 |
# |
45 |
30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly |
46 |
# |
47 |
0,10,20,30,40,50 * * * * root test -x /usr/sbin/run-crons && |
48 |
/usr/sbin/run-crons |
49 |
# Hourly backups |
50 |
0 1,7,13,19 * * * root rsnapshot hourly |
51 |
# Daily backups |
52 |
0 2 * * * root rsnapshot daily |
53 |
# Weekly backups |
54 |
0 3 * * 7 root rsnapshot weekly |
55 |
# This file was written by KCron. Copyright (c) 1999, Gary Meyer |
56 |
# Although KCron supports most crontab formats, use care when editing. |
57 |
# Note: Lines beginning with "#\" indicates a disabled task |
58 |
============================================================== |
59 |
|
60 |
PLease help. My own system is spamming me! |
61 |
|
62 |
Tony |
63 |
-- |
64 |
Those who would give up essential Liberty, to purchase a little temporary |
65 |
Safety, deserve neither Liberty nor Safety. |
66 |
-- Benjamin Franklin |
67 |
|
68 |
|
69 |
-- |
70 |
gentoo-user@g.o mailing list |