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 <[EMAIL PROTECTED]> # Kurt Keller <[EMAIL PROTECTED]> # # 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 != 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 = override for (i=1; i<=NF; i+=2) { options[$i] = $(i+1) } pass = 0 } lastname != FILENAME { lastname = FILENAME pass++ } pass == 1 && $0 ~ /^[[:space:]]*[^#]/ { if (NF == 1) { $2 = "yes" } if (!($1 in options)) { options[$1]=$0 } else { options[$1] = options[$1] "\n" $0 } } # merge options into the content of the second file pass == 2 { # copy $1, so that sub() doesn't modify $0 o = $1 sub("^#", "", o) if (o in options) { if (o == "NotifyClamd" && options[o] ~ / yes$/) { sub("^#", "") options[o] = $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" <[EMAIL PROTECTED]> To: "ClamAV users ML" <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2007 3:22 PM Subject: Re: [Clamav-users] error stops clamd Alexander Grüner 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