Odd message from cron daemon

2005-02-27 Thread Anthony Atkielski
I get an e-mail like the following every eleven minutes on my test
system:

=

From [EMAIL PROTECTED] Sun Feb 27 16:55:00 2005
Date: Sun, 27 Feb 2005 16:55:00 +0100 (CET)
From: [EMAIL PROTECTED] (Cron Daemon)
To: [EMAIL PROTECTED]
Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy
X-Cron-Env: SHELL=/bin/sh
X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
X-Cron-Env: HOME=/
X-Cron-Env: LOGNAME=operator
X-Cron-Env: USER=operator

This: not found

=

What does this message mean?  I've never seen it on my production
system.

-- 
Anthony


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Odd message from cron daemon

2005-02-27 Thread David Fleck
On Sun, 27 Feb 2005, Anthony Atkielski wrote:
I get an e-mail like the following every eleven minutes on my test
system:
=
From [EMAIL PROTECTED] Sun Feb 27 16:55:00 2005
Date: Sun, 27 Feb 2005 16:55:00 +0100 (CET)
From: [EMAIL PROTECTED] (Cron Daemon)
To: [EMAIL PROTECTED]
Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy
X-Cron-Env: SHELL=/bin/sh
X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
X-Cron-Env: HOME=/
X-Cron-Env: LOGNAME=operator
X-Cron-Env: USER=operator
This: not found
=
What does this message mean?  I've never seen it on my production
system.

As a wild guess, check to see that line 29 in /usr/libexec/save-entropy 
has a comment mark at the start of it:

# This script is called by cron to store bits of randomness which are
--
David Fleck
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Odd message from cron daemon

2005-02-27 Thread Roland Smith
On Sun, Feb 27, 2005 at 04:58:31PM +0100, Anthony Atkielski wrote:
 I get an e-mail like the following every eleven minutes on my test
 system:
 
 =
 
 From [EMAIL PROTECTED] Sun Feb 27 16:55:00 2005
 Date: Sun, 27 Feb 2005 16:55:00 +0100 (CET)
 From: [EMAIL PROTECTED] (Cron Daemon)
 To: [EMAIL PROTECTED]
 Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy
 X-Cron-Env: SHELL=/bin/sh
 X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
 X-Cron-Env: HOME=/
 X-Cron-Env: LOGNAME=operator
 X-Cron-Env: USER=operator
 
 This: not found
 
 =
 
 What does this message mean?  I've never seen it on my production
 system.

The save-entropy script is being run from cron. See /etc/crontab. The first
line of this script after the header begins with # This. It looks like
the hash mark was removed, and the shell is trying to find the This
command and fails.

Roland
-- 
R.F. Smith   /\ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l  \ /No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail
public key: http://www.keyserver.net / \Respect for open standards


pgpwtnSPk3nA0.pgp
Description: PGP signature


Re: Odd message from cron daemon

2005-02-27 Thread Anthony Atkielski
Roland Smith writes:

 The save-entropy script is being run from cron. See /etc/crontab. The first
 line of this script after the header begins with # This. It looks like
 the hash mark was removed, and the shell is trying to find the This
 command and fails.

I checked both /usr/libexec/save-entropy and /etc/crontab.  The two
files are identical on my production server and on my test server: same
size, same contents, same modification date, etc.  However, this
mysterious message is being mailed to me only on the test system.  I'm
somewhat bewildered.  I agree that it looks like a simple typo in a file
somewhere, but the files are identical on both systems.

What else could be wrong?

-- 
Anthony


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Odd message from cron daemon

2005-02-27 Thread Anthony Atkielski
David Fleck writes:

 As a wild guess, check to see that line 29 in /usr/libexec/save-entropy
 has a comment mark at the start of it:

 # This script is called by cron to store bits of randomness which are

It does.  It looks identical to the same file on my production system.
The only difference is that I'm not getting this mystery message on my
production system.

What else might cause this?

-- 
Anthony


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Odd message from cron daemon

2005-02-27 Thread Roland Smith
On Sun, Feb 27, 2005 at 06:44:16PM +0100, Anthony Atkielski wrote:
 Roland Smith writes:
 
  The save-entropy script is being run from cron. See /etc/crontab. The first
  line of this script after the header begins with # This. It looks like
  the hash mark was removed, and the shell is trying to find the This
  command and fails.
 
 I checked both /usr/libexec/save-entropy and /etc/crontab.  The two
 files are identical on my production server and on my test server: same
 size, same contents, same modification date, etc.  However, this
 mysterious message is being mailed to me only on the test system.  I'm

Could it be that the cron output is mailed to someone else on the
production machine? It works OK on my 5.3 box, though. My system has
revision 1.2 of /usr/libexec/save-entropy, and it is 3073 bytes. Yours
should be the same, since the revision dates to Januari 2001.

Is there any difference between /usr/libexec/save-entropy and
/usr/src/libexec/save-entropy/save-entropy.sh ? They should be identical.

 somewhat bewildered.  I agree that it looks like a simple typo in a file
 somewhere, but the files are identical on both systems.
 
 What else could be wrong?

Hmmm, disk or filesystem trouble maybe? I guess that would show in the
logfile. Maybe an fsck on /usr in single user mode helps?

Roland
-- 
R.F. Smith   /\ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l  \ /No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail
public key: http://www.keyserver.net / \Respect for open standards


pgp0Lvv4iv6A9.pgp
Description: PGP signature


Re: Odd message from cron daemon

2005-02-27 Thread David Fleck
On Sun, 27 Feb 2005, Anthony Atkielski wrote:
It does.  It looks identical to the same file on my production system.
The only difference is that I'm not getting this mystery message on my
production system.
What else might cause this?
Hmmm.  Well, I don't know, but I'd try running the save-entropy script 
manually and see if you can recreate the message that way.  If so, add a 
-x to the first line

  #!/bin/sh -x
and run it manually again - you should be able to see what command 
precedes the message.

--
David Fleck
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Odd message from cron daemon

2005-02-27 Thread Anthony Atkielski
Roland Smith writes:

 Could it be that the cron output is mailed to someone else on the
 production machine?

I checked my aliases and stuff and sent some test messages to operator,
and they get through okay.  Apparently it's not happening on my
production box, only on the test box.

 It works OK on my 5.3 box, though. My system has revision 1.2 of
 /usr/libexec/save-entropy, and it is 3073 bytes. Yours should be the
 same, since the revision dates to Januari 2001.

Yes, that's what I have as well, on both machines.

 Is there any difference between /usr/libexec/save-entropy and
 /usr/src/libexec/save-entropy/save-entropy.sh ? They should be
 identical.

They are the same on my machines.

 Hmmm, disk or filesystem trouble maybe? I guess that would show in the
 logfile. Maybe an fsck on /usr in single user mode helps?

I have tons of SCSI errors on the test machine, for reasons unknown.  I
don't know if data is actually being lost or not.

But even if that were the case, wouldn't I see the corruption in the
save-entropy file?

-- 
Anthony


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Odd message from cron daemon

2005-02-27 Thread Anthony Atkielski
David Fleck writes:

 Hmmm.  Well, I don't know, but I'd try running the save-entropy script
 manually and see if you can recreate the message that way.  If so, add a
 -x to the first line

#!/bin/sh -x

 and run it manually again - you should be able to see what command 
 precedes the message.

That did it!  The error was a missing newline in my modified version of
rc.conf.  Thanks!

-- 
Anthony


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Message from CRON

2004-03-09 Thread Andreas Kohn
Hi,

On Tue, 2004-03-09 at 00:25, Gerard Seibert wrote:
 From time to time, I receive a notification that I have mail in
 /var/mail/ges.
 
 Upon checking, this is what I find:
 
 Subject: Cron [EMAIL PROTECTED] operator /usr/libexec/save-entropy
[...]
 operator: not found
 
 Subject: Cron [EMAIL PROTECTED] root/usr/libexec/atrun
[...]
 root: not found
 
 You will notice that these times are very close together. Actually, I have
 received messages with the times varying by only a few seconds. Why am I
 receiving these messages, and what are they trying to tell me?
 
 Thanks!
 
 Gerard Seibert
 [EMAIL PROTECTED]
 

did you modify your /etc/crontab? 

#minute hourmdaymonth   wdaywho command
*/5 *   *   *   *   root/usr/libexec/atrun
*/11*   *   *   *   operator
/usr/libexec/save-entropy

It looks like you have an additional column in these lines, so that cron
thinks root and operator are commands to execute.

HTH,
Andreas



signature.asc
Description: This is a digitally signed message part


Re: Message from CRON

2004-03-09 Thread Ruben de Groot
On Mon, Mar 08, 2004 at 06:25:39PM -0500, Gerard Seibert typed:
 From time to time, I receive a notification that I have mail in
 /var/mail/ges.
 
 Upon checking, this is what I find:
 
 
 
 From [EMAIL PROTECTED] Mon Mar  8 18:11:01 2004
 Return-Path: [EMAIL PROTECTED]
 Received: from BudMan.cable.rcn.com (localhost [127.0.0.1])
   by BudMan.cable.rcn.com (8.12.10/8.12.10) with ESMTP id i28NB0Ja029641
   for [EMAIL PROTECTED]; Mon, 8 Mar 2004 18:11:00 -0500 (EST)
   (envelope-from [EMAIL PROTECTED])
 Received: (from [EMAIL PROTECTED])
   by BudMan.cable.rcn.com (8.12.10/8.12.10/Submit) id i28NB0Qo029628;
   Mon, 8 Mar 2004 18:11:00 -0500 (EST)
   (envelope-from ges)
 Date: Mon, 8 Mar 2004 18:11:00 -0500 (EST)
 Message-Id: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED] (Cron Daemon)
 To: [EMAIL PROTECTED]
 Subject: Cron [EMAIL PROTECTED] operator /usr/libexec/save-entropy
 X-Cron-Env: SHELL=/bin/sh
 X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
 X-Cron-Env: HOME=/home/ges
 X-Cron-Env: LOGNAME=ges
 X-Cron-Env: USER=ges
 
 operator: not found
 
 From [EMAIL PROTECTED] Mon Mar  8 18:15:01 2004
 Return-Path: [EMAIL PROTECTED]
 Received: from BudMan.cable.rcn.com (localhost [127.0.0.1])
   by BudMan.cable.rcn.com (8.12.10/8.12.10) with ESMTP id i28NF0Ja029878
   for [EMAIL PROTECTED]; Mon, 8 Mar 2004 18:15:00 -0500 (EST)
   (envelope-from [EMAIL PROTECTED])
 Received: (from [EMAIL PROTECTED])
   by BudMan.cable.rcn.com (8.12.10/8.12.10/Submit) id i28NF0pd029876;
   Mon, 8 Mar 2004 18:15:00 -0500 (EST)
   (envelope-from ges)
 Date: Mon, 8 Mar 2004 18:15:00 -0500 (EST)
 Message-Id: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED] (Cron Daemon)
 To: [EMAIL PROTECTED]
 Subject: Cron [EMAIL PROTECTED] root/usr/libexec/atrun
 X-Cron-Env: SHELL=/bin/sh
 X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
 X-Cron-Env: HOME=/home/ges
 X-Cron-Env: LOGNAME=ges
 X-Cron-Env: USER=ges
 
 root: not found
 
 You will notice that these times are very close together. Actually, I have
 received messages with the times varying by only a few seconds. Why am I
 receiving these messages, and what are they trying to tell me?

It looks like you somehow managed to install the system crontab 
(/etc/crontab) as a users' crontab (/var/cron/tabs/ges). Check the 
output of crontab -u ges -l.
In a user crontab there's no column run as user x, so the usernames 
operator and root are mistaken for commands.

Ruben


 Thanks!
 
 Gerard Seibert
 [EMAIL PROTECTED]
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: Message from CRON

2004-03-09 Thread Gerard Seibert
On Tuesday, March 09, 2004 6:11:41 AM Ruben de Groot [EMAIL PROTECTED] wrote:

|On Mon, Mar 08, 2004 at 06:25:39PM -0500, Gerard Seibert typed:
| From time to time, I receive a notification that I have mail in
| /var/mail/ges.
| 
| Upon checking, this is what I find:
| 
| 
| 
| From [EMAIL PROTECTED] Mon Mar  8 18:11:01 2004
| Return-Path: [EMAIL PROTECTED]
| Received: from BudMan.cable.rcn.com (localhost [127.0.0.1])
| by BudMan.cable.rcn.com (8.12.10/8.12.10) with ESMTP id i28NB0Ja029641
| for [EMAIL PROTECTED]; Mon, 8 Mar 2004 18:11:00 -0500 (EST)
| (envelope-from [EMAIL PROTECTED])
| Received: (from [EMAIL PROTECTED])
| by BudMan.cable.rcn.com (8.12.10/8.12.10/Submit) id i28NB0Qo029628;
| Mon, 8 Mar 2004 18:11:00 -0500 (EST)
| (envelope-from ges)
| Date: Mon, 8 Mar 2004 18:11:00 -0500 (EST)
| Message-Id: [EMAIL PROTECTED]
| From: [EMAIL PROTECTED] (Cron Daemon)
| To: [EMAIL PROTECTED]
| Subject: Cron [EMAIL PROTECTED] operator /usr/libexec/save-entropy
| X-Cron-Env: SHELL=/bin/sh
| X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
| X-Cron-Env: HOME=/home/ges
| X-Cron-Env: LOGNAME=ges
| X-Cron-Env: USER=ges
| 
| operator: not found
| 
| From [EMAIL PROTECTED] Mon Mar  8 18:15:01 2004
| Return-Path: [EMAIL PROTECTED]
| Received: from BudMan.cable.rcn.com (localhost [127.0.0.1])
| by BudMan.cable.rcn.com (8.12.10/8.12.10) with ESMTP id i28NF0Ja029878
| for [EMAIL PROTECTED]; Mon, 8 Mar 2004 18:15:00 -0500 (EST)
| (envelope-from [EMAIL PROTECTED])
| Received: (from [EMAIL PROTECTED])
| by BudMan.cable.rcn.com (8.12.10/8.12.10/Submit) id i28NF0pd029876;
| Mon, 8 Mar 2004 18:15:00 -0500 (EST)
| (envelope-from ges)
| Date: Mon, 8 Mar 2004 18:15:00 -0500 (EST)
| Message-Id: [EMAIL PROTECTED]
| From: [EMAIL PROTECTED] (Cron Daemon)
| To: [EMAIL PROTECTED]
| Subject: Cron [EMAIL PROTECTED] root  /usr/libexec/atrun
| X-Cron-Env: SHELL=/bin/sh
| X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
| X-Cron-Env: HOME=/home/ges
| X-Cron-Env: LOGNAME=ges
| X-Cron-Env: USER=ges
| 
| root: not found
| 
| You will notice that these times are very close together. Actually, I have
| received messages with the times varying by only a few seconds. Why am I
| receiving these messages, and what are they trying to tell me?
|
|It looks like you somehow managed to install the system crontab 
|(/etc/crontab) as a users' crontab (/var/cron/tabs/ges). Check the 
|output of crontab -u ges -l.
|In a user crontab there's no column run as user x, so the usernames 
|operator and root are mistaken for commands.
|
|Ruben
|
|
| Thanks!
| 
| Gerard Seibert
| [EMAIL PROTECTED]
| 
| ___
| [EMAIL PROTECTED] mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to [EMAIL PROTECTED]


** Reply Separator **
Tuesday, March 09, 2004 6:21:44 PM

Ya, that was it. I have no idea how I managed that though. I never
touch the cron - I have no reason to.

Gerard Seibert



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Message from CRON

2004-03-08 Thread Gerard Seibert
From time to time, I receive a notification that I have mail in
/var/mail/ges.

Upon checking, this is what I find:



From [EMAIL PROTECTED] Mon Mar  8 18:11:01 2004
Return-Path: [EMAIL PROTECTED]
Received: from BudMan.cable.rcn.com (localhost [127.0.0.1])
by BudMan.cable.rcn.com (8.12.10/8.12.10) with ESMTP id i28NB0Ja029641
for [EMAIL PROTECTED]; Mon, 8 Mar 2004 18:11:00 -0500 (EST)
(envelope-from [EMAIL PROTECTED])
Received: (from [EMAIL PROTECTED])
by BudMan.cable.rcn.com (8.12.10/8.12.10/Submit) id i28NB0Qo029628;
Mon, 8 Mar 2004 18:11:00 -0500 (EST)
(envelope-from ges)
Date: Mon, 8 Mar 2004 18:11:00 -0500 (EST)
Message-Id: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Cron Daemon)
To: [EMAIL PROTECTED]
Subject: Cron [EMAIL PROTECTED] operator /usr/libexec/save-entropy
X-Cron-Env: SHELL=/bin/sh
X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
X-Cron-Env: HOME=/home/ges
X-Cron-Env: LOGNAME=ges
X-Cron-Env: USER=ges

operator: not found

From [EMAIL PROTECTED] Mon Mar  8 18:15:01 2004
Return-Path: [EMAIL PROTECTED]
Received: from BudMan.cable.rcn.com (localhost [127.0.0.1])
by BudMan.cable.rcn.com (8.12.10/8.12.10) with ESMTP id i28NF0Ja029878
for [EMAIL PROTECTED]; Mon, 8 Mar 2004 18:15:00 -0500 (EST)
(envelope-from [EMAIL PROTECTED])
Received: (from [EMAIL PROTECTED])
by BudMan.cable.rcn.com (8.12.10/8.12.10/Submit) id i28NF0pd029876;
Mon, 8 Mar 2004 18:15:00 -0500 (EST)
(envelope-from ges)
Date: Mon, 8 Mar 2004 18:15:00 -0500 (EST)
Message-Id: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Cron Daemon)
To: [EMAIL PROTECTED]
Subject: Cron [EMAIL PROTECTED] root  /usr/libexec/atrun
X-Cron-Env: SHELL=/bin/sh
X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
X-Cron-Env: HOME=/home/ges
X-Cron-Env: LOGNAME=ges
X-Cron-Env: USER=ges

root: not found

You will notice that these times are very close together. Actually, I have
received messages with the times varying by only a few seconds. Why am I
receiving these messages, and what are they trying to tell me?

Thanks!

Gerard Seibert
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]