Kenneth P. Oncinian wrote:
I modified a script to work with Trendmicro's product download page before. Essentially it downloads the webpage for the product, computes an MD5 sum for the page and does a diff between the new and old if the MD5 sum changes then mails an update to a mailing list.Decent ftp/http download sites usually have that. Before I also needed to script my own update script for trendmicro, which unfortunately does not support my slackware mail server, thus i have to parse the pattern number based on the html update page. grep and awk also came to the rescue :-).On Tue, 2007-06-19 at 08:19 +0800, Ramil Galib wrote:Thanks for your input guys. These made me squeeze my brain more and luckily I found a package list text file at the repository which I can parse using grep and awk. _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph
The problem that cropped up is that the maintainer of the webpage keeps changing minor stuffs like the date posted, formatting.... So I kept getting spurious email notifications, and it was getting tiresome. In your case, you may also want to consider directly downloading the server.ini from the product's activeupdate site, then grep and awk it... At least it's plain text.... And that what Trend products do to check for updates.
-- Peter Santiago [EMAIL PROTECTED] My website: www.psinergybbs.com My spamtrap address: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

