Ask a Question related to FreeBSD, Design and Development.
-
Anthony Atkielski #1
Odd message from cron daemon
I get an e-mail like the following every eleven minutes on my test
system:
================================================== ===============
From [email]operator@contactdish.atkielski.com[/email] Sun Feb 27 16:55:00 2005
Date: Sun, 27 Feb 2005 16:55:00 +0100 (CET)
From: [email]operator@contactdish.atkielski.com[/email] (Cron Daemon)
To: [email]operator@contactdish.atkielski.com[/email]
Subject: Cron <operator@contactdish> /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
Anthony Atkielski Guest
-
daemon??
Who would I need to speak to about making a product that involves the little devil? It is not a software item, but instead it is a material object?... -
Daemon proc run on a port, kill daemon and cannot restart on same port for 10 minutes.
Unix is AIX 4.3 The daemon is a license manager which runs for an application. Killing the daemon is fine. (using the 'kill -9 <pid>')... -
FTP Daemon...
Hi All, Has anyone written/used a simple ftp daemon, if so, can you please me to the CPAN modules you used (i haven't found anything that really... -
Daemon
Hello, In my ASP application I have a new requirement to email users a notification on a weekly basis if certain conditions are met. Is it... -
Messages from Cron Daemon
On Sun, Jul 27, 2003 at 05:01:42PM +0200, J. Zidar wrote: | How can one lower the frequency of messages (mails) from Cron Daemon? | The text of the... -
David Fleck #2
Re: Odd message from cron daemon
On Sun, 27 Feb 2005, Anthony Atkielski wrote:
> I get an e-mail like the following every eleven minutes on my test
> system:
>
> ================================================== ===============
>> Date: Sun, 27 Feb 2005 16:55:00 +0100 (CET)>> From [email]operator@contactdish.atkielski.com[/email] Sun Feb 27 16:55:00 2005
> From: [email]operator@contactdish.atkielski.com[/email] (Cron Daemon)
> To: [email]operator@contactdish.atkielski.com[/email]
> Subject: Cron <operator@contactdish> /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]david.fleck@mchsi.com[/email]
David Fleck Guest
-
Roland Smith #3
Re: Odd message from cron daemon
On Sun, Feb 27, 2005 at 04:58:31PM +0100, Anthony Atkielski wrote:
The save-entropy script is being run from cron. See /etc/crontab. The first> I get an e-mail like the following every eleven minutes on my test
> system:
>
> ================================================== ===============
>> Date: Sun, 27 Feb 2005 16:55:00 +0100 (CET)> >From [email]operator@contactdish.atkielski.com[/email] Sun Feb 27 16:55:00 2005
> From: [email]operator@contactdish.atkielski.com[/email] (Cron Daemon)
> To: [email]operator@contactdish.atkielski.com[/email]
> Subject: Cron <operator@contactdish> /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.
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
[url]http://www.xs4all.nl/~rsmith/[/url] X No Word docs in e-mail
public key: [url]http://www.keyserver.net[/url] / \ Respect for open standards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQFCIfoCEnfvsMMhpyURAr6JAJ9tz81tZ6HFqJhSWYl82n QTTxMn2gCfVQk7
C8h0qnJqEIFUMXST6NFUWWM=
=4sN0
-----END PGP SIGNATURE-----
Roland Smith Guest
-
Anthony Atkielski #4
Re: Odd message from cron daemon
Roland Smith writes:
I checked both /usr/libexec/save-entropy and /etc/crontab. The two> 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.
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
Anthony Atkielski Guest
-
Anthony Atkielski #5
Re: Odd message from cron daemon
David Fleck writes:
It does. It looks identical to the same file 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
The only difference is that I'm not getting this mystery message on my
production system.
What else might cause this?
--
Anthony
Anthony Atkielski Guest
-
Roland Smith #6
Re: Odd message from cron daemon
On Sun, Feb 27, 2005 at 06:44:16PM +0100, Anthony Atkielski wrote:
Could it be that the cron output is mailed to someone else on the> 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
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.
Hmmm, disk or filesystem trouble maybe? I guess that would show in the> 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?
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
[url]http://www.xs4all.nl/~rsmith/[/url] X No Word docs in e-mail
public key: [url]http://www.keyserver.net[/url] / \ Respect for open standards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQFCIg+vEnfvsMMhpyURAmkaAJ94wYJfjsui6vTOSVFSJ9 3zFjUOZwCdGd4x
hUQntdLqGYyHTBGU8KiO8qQ=
=okWB
-----END PGP SIGNATURE-----
Roland Smith Guest
-
David Fleck #7
Re: Odd message from cron daemon
On Sun, 27 Feb 2005, Anthony Atkielski wrote:
Hmmm. Well, I don't know, but I'd try running the save-entropy script> 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?
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]david.fleck@mchsi.com[/email]
David Fleck Guest



Reply With Quote

