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]