fedora-list Digest, Vol 15, Issue 160

James Kosin jkosin at beta.intcomgrp.com
Wed May 18 17:46:08 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Saurabh Barve wrote:

| Message: 14
| Date: Wed, 18 May 2005 12:00:54 -0400
| From: James Kosin <jkosin at beta.intcomgrp.com>
| Subject: Re: cron jobs not being run
| To: For users of Fedora Core releases <fedora-list at redhat.com>
| Message-ID: <428B66B6.20601 at beta.intcomgrp.com>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
|

| Saurabh Barve wrote:
|
| | Hi,
| |
| | I am running FC2 here. There are a number of cron jobs in
| | /etc/cron.daily - makewhatis, webalizer,
| | chkrootkit,freshclam,squirrelmail, tetex, yum, etc. However, when I
| | see the Cron report, only the yum jobs is being reported as run.
| | Some of the cron jobs, the chkrootkit one for example, are set to
| | send an e-mail to the root account, but I never get one.
| |
| | Why am I not seeing any reports/logs being generated from these cron
| | jobs?
| |
| | Saurabh.
|
| Hi,
|
| Most cron jobs only produce output if there is a problem that needs
| attention.  What happens, is that stdoutput and stderror are directed
| to an email.  If the output is blank, ie. no output is generated by
| the command, then cron disregards sending an email.
|
| James


Well, that is strange because the clamscan cron job for my machine
is set to scan the mail folders of all users for all users, and
e-mail output to root:
- ---
clamscan -r /var/spool/mail 2>&1 | mail -s "ClamScan Output" root
- ---

and I don't get any reports in my cron logs. However, when I run
clamscan on the same directory on the command line, it shows 4 files
as being infected. That is a problem that needs attention. That is
an output that I would like to know.

Maybe something wrong with the command in the cron file?

Saurabh.

- ------
I just tried the command from the command prompt and it works ok.

Try adding it....  like this.
crontab -e

add the appropriate information and save making the command to execute
only
~    /usr/bin/clamscan -r /var/spool/mail
no redirects, etc.

James

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCi39gkNLDmnu1kSkRAhsZAJ9htf/qNlsCMS+TrOCiLRGl7IIbegCfWQwX
E/WWa5JKf9zKXjsHn/hiUkk=
=8jDz
-----END PGP SIGNATURE-----




More information about the users mailing list