if i edit a file on a server in New York for example, download the file to a relay in London >
then use relevance to compare the file modified date on the london relay, say some code that checks to see if the file has been modified in the last 10 minutes >
if yes then download it.
My question is regarding the different time zones, how could i make this check work for a a file thats updated in one location but the needs the if modified date check in multiple time zones.
I think youâd be better off checking if the sha1 has changed from a previously known value.
However, if you compare times for equality and both times contain timezone information, the conversion will be handled automatically. For example:
Q: âMon, 06 Apr 2009 20:00:00 -0700â as time = âTue, 07 Apr 2009 04:00:00 +0100â as time
A: True
In either case, I donât think youâll be able to get the behavior you want b/c you cannot check the remote file for sha1 or modification date without first downloading it. Also, if you donât supply a hash in your download statement youâll lose all the caching capabilities of the relay hierarchy.
Iâve just seen the new feature entitled âdynamic downloadingâ in the winactions guide for client 7.2 ⌠page 7 and the example at the bottam would help me enormously ⌠but alas we are just rolling out 7.1.x ⌠had we not encoutered major issues with the last couple of attempts to deploy version 7.x ⌠we might have been on 7.2 by now
so i need to find the best solution to download multiple files to multiple servers that change every 10 minutes or so, using a control file probally ⌠the downloads need to use the relay infrastructure as well just to complicate thuns more . .
I took a look at your other post. It is possible to get something working that will meet your requirements, but itâs going to be a decently large project. My advice at this point would be to contact our professional services department and see if they can scope out a solution for you.