I'm using an automatic update script to keep my rulebase up to date. This
script runs periodically through the day and it also runs in response to the
emails that come when the rulebase gets updated by the SortMonster.
All hail the SortMonster!
Anyway. The heavy lifting in that script is a line
Hi,
> c:\winnt\wget.exe http://www.sortmonster.net/Sniffer/Updates/mysnfcode.snf
> -N -O mysnfcode.new.gz --header=Accept-Encoding:gzip --http-user=sniffer
> --http-passwd=password -o snfupd.txt
>
> I'm doing something wrong. Everytime the script fires it pulls the file,
> even if it isn't newer.
On Wednesday, August 18, 2004, 9:32:58 AM, John wrote:
JS> I'm using an automatic update script to keep my rulebase up to date. This
JS> script runs periodically through the day and it also runs in response to the
JS> emails that come when the rulebase gets updated by the SortMonster.
JS> All hai
John,
I agree with Bonno. The wget line is good, I'm using the same. You must be
deleting the file after the update.
Met vriendelijke groet,
ing. Michiel Prins
SOS Small Office Solutions / REJECT
Wannepad 27
1066 HW Amsterdam
tel. 020-4082627
fax. 020-4082628
[EMAIL PROTECTED]
-Original
Is it the .snf.gz file that gets compared or the .snf file? I thought the
.gz file was something created dynamically by the server/wget interaction
and that the .snf file was the target for comparison. I'll do some more
experimentation using the .gz file and see what I get.
Pete's suggestion is p
Hello John,
I have built a similar script using WGET and the only big difference I can
see is that I use wget -N http://www.sortmonster.net
You can try putting the -N right after wget and see if it works better for
you.
How are you testing? Do you copy an older snf file over to compare with?
I'll give that a shot.
I'm testing by forcing unscheduled at jobs with the scheduler.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Shaun Sturby, MCSE Optrics Engineering
Sent: Wednesday, August 18, 2004 10:44 AM
To: [EMAIL PROTECTED]
Subject: RE: [sn
Hello John,
I know that when I was testing my script I ran it in a command prompt so I
could see the output and I had to keep replacing the local file that it was
comparing with so that it was older than the current file on the SortMonster
server. When it started the download I could then interupt
I'm not sure which approach fixed it, but I went through my script again and
double checked all of my file locations and names and paths plus moving the
-N option. Either or both fixed it and the script is running perfectly now.
Thanks again for all of the great suggestions.
-Original Messag