On 22.06.2004, at 18:51, Dan Egli wrote:
Philipp Ringli wrote:
On 22.06.2004, at 03:59, Dan Egli wrote:Philipp Ringli wrote:
That one. And xdm.rpmnew has nothing to do with clam. You're seeing two different messages in the logwatch. logrotate ignores files ending in .rpm[new|old]. That is one error. The other, indicating frashclam existed with a return code of 1 is completely unrelated. I'd run /etc/cron.daily/freshclam manually to see what's up.
-- -- Dan
okay... :) [EMAIL PROTECTED] cron.daily]# ./freshclam [EMAIL PROTECTED] cron.daily]# seems to run smoothly, no complaints... cheers, phil
try this:
[EMAIL PROTECTED] cron.daily]# ./freshclam [EMAIL PROTECTED] cron.daily]# echo $? 0 [EMAIL PROTECTED] cron.daily]#
if the line after echo is not a 0 then you had a problem.
-- -- Dangot this email now: Subject: Cron <[EMAIL PROTECTED]> nice -n 19 run-parts /etc/cron.daily From: root Date: 22. Juni 2004 04:08:31 GMT+02:00 To: pr_at_drahtlos_d_ch run-parts: /etc/cron.daily/freshclam exited with return code 1 and i got this from your test: [EMAIL PROTECTED] cron.daily]# ./freshclam [EMAIL PROTECTED] cron.daily]# echo $? 1 :-\ phil
So there is a real issue here. I don't have ClamAv in front of me, but is there a verbose paramater that freshclam can run with?
Try without the ./ (so it has to search the path and find the freshclam binary).
Wait, try this. edit /etc/cron.daily/freshclam, and put a set -x
right after the bang path, THEN run it. That will tell you the execution sequenece (similiar to Echo on in Win/Dos).
-- -- Dan
thank you thomasz, for that explanation about shebang.. :)
Dan,
i did what you suggested:
1. i ran the normal freshclam command (see results in earlier post)
2. i added set -x after the shebang. and this is what i get:
---------------------------
[EMAIL PROTECTED] cron.daily]# ./freshclam
+ LOG_FILE=/var/log/clamav/freshclam.log
+ '[' '!' -f /var/log/clamav/freshclam.log ']'
+ /usr/bin/freshclam --quiet --datadir=/var/lib/clamav --log=/var/log/clamav/freshclam.log
---------------------------
phil
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users