> "http://download.nai.com/products/mcafee-avert/daily_dats/DAIL > YDAT.ZIP"; > $file1 = "DAILYDAT.ZIP";
what is DAILYDAT.ZIP. version is always 4100.. I was told by McAfee directly to use the dat-42xx.zip's off the ftp for the command line scanner. They said they do not support DAILYDAT. we use the mcafee SDK to create our own command line scanner around their engine so we control structure of output, we then do dat updated via the dat-422x files. here you can see the debug output from our update script. this is the recommended way from their development team, since the ini is only about 700 bytes, and you dont have to rely on remote date/file size to do your testing if the new dat should be downloaded. also, update.ini always contains the latest software version across platform, and provides MD5 hashes, so you can integrity check your downloads... i simply use Config::IniFiles to parse the ZIP section and pull DATVersion, FilePath, FileName, and MD5 out here is debug output from my update script, with 3 different scenarios. Local update.ini does not exist or failed checksum No DAT file listed in update.ini exists, or failed checksum ------------------------------------------------------------ - Checking for update.ini - File update.ini does not exist. Downloading from ftp://ftp.nai.com. - Downloaded update.ini OK - Parsing update.ini for DAT Version - Checking if dat-4225.zip exists - File dat-4225.zip does not exist. Downloading dat-4225.zip from ftp://ftp.nai.com - Download new DAT from ftp://ftp.nai.com/pub/antivirus/datfiles/4.x/dat-4225.zip - Downloaded dat-4225.zip OK - Extracting DAT dat-4225.zip - Installing: clean.dat - Installing: file_id.diz - Installing: names.dat - Installing: packing.lst - Installing: pkgdesc.ini - Installing: reseller.txt - Installing: scan.dat - Installing: validate.exe - Installing: readme.txt - Installing: internet.dat - Extraction of dat-4225.zip Complete - DAT Files updated to v4225 Local update.ini does not exist or failed checksum No DAT file listed in update.ini exists, or failed checksum ------------------------------------------------------------ - Checking for update.ini - File update.ini does not exist. Downloading from ftp://ftp.nai.com. - Downloaded update.ini OK - Parsing update.ini for DAT Version - Checking if dat-4225.zip exists - File dat-4225.zip exists.. Performing Integrity Check. - MD5 should be 98a22ad5f2e5c1dfda407b6ec6e81f57 - MD5 is 98a22ad5f2e5c1dfda407b6ec6e81f57 - MD5 checksum OK - Extracting DAT dat-4225.zip - Installing: clean.dat - Installing: file_id.diz - Installing: names.dat - Installing: packing.lst - Installing: pkgdesc.ini - Installing: reseller.txt - Installing: scan.dat - Installing: validate.exe - Installing: readme.txt - Installing: internet.dat - Extraction of dat-4225.zip Complete - DAT Files updated to v4225 Local update.ini file exists and passes checksum with current update.ini No update required --------------------------------------------------------- - Checking for update.ini - File update.ini exists. - Moving update.ini to tmp file. - Downloading current update.ini from ftp://ftp.nai.com. - Downloaded update.ini OK - MD5 Checksum match: No DAT update required Thanks, Dallas Engelken NMGI ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general