I was reading some post and wiki but I don’t found the exactly answer.
I have some scripts to run in some servers, this part I understood but I need some external files, that are update every day by a external team. From the clientes, I can’t download those files directly, so I from what I see I need use the prefetch command that will cache those files on the IEM Servers to send to the clients.
So, for example:
prefetch unzip.exe sha1:e1652b058195db3f5f754b7ab430652ae04a50b8 size:167936 http://software.bigfix.com/download/redist/unzip-5.52.exe
I found the example above, I tested and ok, this would work to download some files from external sources to the clients but my problem is:
As the file is changed everyday and I don’t have control of that, how I can get the sha1 hash, seems that the prefetch command need the sha1 parameter right? As well the size parameter, how I can do to prefetch ignore this and only download the indicated package and put on the clients?
I wanted all of this because I need create a task that run a shell script on a set of servers, but the scripts use some files that are update every day from one source link that I have.