Folks, a little help here would be appreciated, if you have a mo'....

I have a local virus definition file on a MDK 9 ftp server that needs to be 
kept up to date, so that client machines will be updated when they log in. 
The latter part is accomplished by using a perl script invoking the virus 
checker itself to get the definition vers number, then it goes off and 
downloads the newer definition if necessary. All works fine on the client...

Now, the server. 

I do not want to run/cannot run the virus checker on the server, so I cannot 
get the definition version string this way. 

What I *think* I need to do is to grab the file name from the remote site, 
strip out all the guff, leaving just the numbers in a variable, then do the 
same with the local file and then compare the two. If local < remote, go grab 
remote, then delete the older local.

Can anyone help me in achieving the server-side stuff? An added complication 
is that the remote URL is not absolute - it goes through akamai's servers 
(hence the choice of curl)..


TIA
-- 
 john in sydney
 Mandrake Linux 9.0, Kernel version: 2.4.19-16mdk
 OpenPGP key available on www.keyserver.net
 1024D/3E4A902F B38A AB0F 8658 D9E1 4900 3050 08FA D4FA 3E4A 902F


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to