From clamav-users-bounces@lists.clamav.net  Thu Apr 12 05:39:58 2007
Return-Path: <clamav-users-bounces@lists.clamav.net>
X-Original-To: list@tad.clamav.net
Delivered-To: list@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Wzqo8--gFyX3; Thu, 12 Apr 2007 05:39:58 +0200 (CEST)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id 16EA24140CE;
	Thu, 12 Apr 2007 05:39:46 +0200 (CEST)
X-Original-To: clamav-users@tad.clamav.net
Delivered-To: clamav-users@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 2nJpJmgqERyI for <clamav-users@tad.clamav.net>;
	Thu, 12 Apr 2007 05:39:44 +0200 (CEST)
X-Greylist: delayed 54500 seconds by postgrey-1.27 at tad;
	Thu, 12 Apr 2007 05:39:44 CEST
Received: from suni.cyberia.net.sa (sunI.cyberia.net.sa [212.119.64.14])
	by tad.clamav.net (Postfix) with ESMTP id 1B46B4140CB
	for <clamav-users@lists.clamav.net>;
	Thu, 12 Apr 2007 05:39:43 +0200 (CEST)
Received: from ejaz ([212.119.65.13]) by suni.cyberia.net.sa with ESMTP
	id <20070411122905.HHBT500.suni@ejaz>
	for <clamav-users@lists.clamav.net>; Wed, 11 Apr 2007 15:29:05 +0300
Message-ID: <053f01c77c35$41bffac0$0d4177d4@ejaz>
From: "Mohammed Ejaz" <mejaz@cyberia.net.sa>
To: "ClamAV users ML" <clamav-users@lists.clamav.net>
References: <461CD008.6040308@gmx.de> <461CD311.1090901@gmx.net>
Date: Wed, 11 Apr 2007 15:30:57 +0300
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
Subject: Re: [Clamav-users] error stops clamd
X-BeenThere: clamav-users@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ClamAV users ML <clamav-users@lists.clamav.net>
List-Id: ClamAV users ML <clamav-users.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users>,
	<mailto:clamav-users-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-users@lists.clamav.net>
List-Help: <mailto:clamav-users-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users>,
	<mailto:clamav-users-request@lists.clamav.net?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: clamav-users-bounces@lists.clamav.net
Errors-To: clamav-users-bounces@lists.clamav.net


Please help me any one  for my problem

Actually i have problem when i was trying to upgrade  clamav from  0.887 to =

0.90 version

Following is my setup

1, Solaris Sparc server Enterprise Edition,
2. O/S Solaris 8 with complete patches,
3. Amavisd, spamassin,  Clamav and postfix,

As per the instrustion from the http://www.clamav.net.faq  when ever i was =

trying to do so  with following script but it come out with following error=
, =

please if any one you guys can help me in this then iam very very thankfull =

to u,

awk: syntax error near line 1
awk: bailing out near line 1

Thanks in advance






##!/bin/ksh
# updateclamconf
# Merge two clamd.conf or freshclam.conf files and write the result to
# the standard output. The result file contains all comments from the
# second file with the active (i.e. not commented-out) settings from
# the first file merged into it. Settings which were only in the first
# file file and not mentioned in the second file any more, are appended
# at the end, but commented out.
#
# Any comment must start with a hash and a space:
#        # comment
# while any commented out setting must start with a hash and no space:
#        #settingname settingvalue
#
# The first file may optionally have the format that was used up to
# version 0.88.7. In that case the settings will be converted to the
# format that is used in version 0.90 and newer.
#
# Known issues:
#
# If an option exists more than once in eiter file, all occurrences are
# moved to the position of the first occurrence. AFAIK this
# currently only applies to the DatabaseMirror option in
# freshclam.conf.

# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# Authors: Reinhard Max <max@suse.de>
#          Kurt Keller <Kurt@pinboard.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

BEGIN {
    if (ARGC !=3D 3) {
        print "usage: updateclamconf /usr/local/etc/freshclam.conf =

etc/freshclam.conf" > "/dev/stderr"
        exit 1
    }
    # some options may be overridden from the command line
    $0 =3D override
    for (i=3D1; i<=3DNF; i+=3D2) {
        options[$i] =3D $(i+1)
    }
    pass =3D 0
}
lastname !=3D FILENAME {
    lastname =3D FILENAME
    pass++
}
pass =3D=3D 1 && $0 ~ /^[[:space:]]*[^#]/ {
    if (NF =3D=3D 1) {
        $2 =3D "yes"
    }

    if (!($1 in options)) {

        options[$1]=3D$0
    } else {
        options[$1] =3D options[$1] "\n" $0
    }
}
# merge options into the content of the second file
pass =3D=3D 2 {
    # copy $1, so that sub() doesn't modify $0
    o =3D $1
    sub("^#", "", o)
    if (o in options) {
        if (o =3D=3D "NotifyClamd" && options[o] ~ / yes$/) {
            sub("^#", "")
            options[o] =3D $0
        }
        print options[o]
        delete options[o]
    } else {
        print
    }
}
# print out any options that were only found in the first file
END {
    for (o in options) {
        print "\n# These options weren't found in the new config file"
        for (o in options) {
            print "# " o, options[o]
        }
        break
    }
}


:q!
bash-2.03# awk stest1
awk: syntax error near line 1
awk: bailing out near line 1



Regards,
__________________
Mohammed Ejaz
Systems Administrator
Middle East Internet Company (CYBERIA)
Riyadh, Saudi Arabia
Phone: +966-1-4647114  Ext: 140
Fax: +966-1-4654735

----- Original Message ----- =

From: "jacusy" <jacusy@gmx.net>
To: "ClamAV users ML" <clamav-users@lists.clamav.net>
Sent: Wednesday, April 11, 2007 3:22 PM
Subject: Re: [Clamav-users] error stops clamd


Alexander Gr=FCner schrieb:
> Hello :-)
>
> Same here since 12:45h MESZ.
>
> After some tests this helped me to get all working again:
>
> sudo killall freshclam
> sudo rcclamd restart
> sudo rc<application> restart
>
> And do NOT forget to comment you freshclam Updtes in cron out.
>
> Hope this quick hack helps...
>
The problem is not to restart my applications, the problem is the time
between clamd going down and restarting my application. As my clamd was
killed about 2.15 MEZ and the service was restarted at 9.30 MEZ, this is
a serious problem! 7 hours we were not able to send / receive mail cause
of a terribly made update of 9 megabytes......
>
>
> ISC Handler Marteen told me just a few minutes ago:
>
> "Last night the ClamAV project released a
> new main.cvd, which was about 9 megabytes in size. As many users are still
> using Clamav 0.8, which downloads this file in full, this causes high
> stress for a number of mirrors.
>
> As more users upgrade from 0.8 to 0.9, this problem will disappear with
> future updates. Version 0.9 only transfers the difference between CVDs
> instead of the files in full."
>
Does this mean that every time they have a new main.cvd, my clamd will
stop working??? I cannot believe that they just hope that people update
to clamav 0.9....
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

