[sniffer] Automatic update snafu

2004-08-18 Thread John Shacklett
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

Re: [sniffer] Automatic update snafu

2004-08-18 Thread Bonno Bloksma
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. I

Re: [sniffer] Automatic update snafu

2004-08-18 Thread Pete McNeil
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 hail

RE: [sniffer] Automatic update snafu

2004-08-18 Thread Michiel Prins
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

RE: [sniffer] Automatic update snafu

2004-08-18 Thread Shaun Sturby, MCSE Optrics Engineering
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

RE: [sniffer] Automatic update snafu

2004-08-18 Thread John Shacklett
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:

RE: [sniffer] Automatic update snafu

2004-08-18 Thread Shaun Sturby, MCSE Optrics Engineering
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

RE: [sniffer] Automatic update snafu

2004-08-18 Thread John Shacklett
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