RE: [sniffer] Automatic update snafu
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 Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sturby, MCSE Optrics Engineering Sent: Wednesday, August 18, 2004 1:02 PM To: [EMAIL PROTECTED] Subject: RE: [sniffer] Automatic update snafu 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 it with a CONT-C and reduce the load on the server. Shaun Sturby, MCSE Manager - Technical Services Optrics Engineering -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Shacklett Sent: Wednesday, August 18, 2004 8:50 AM To: [EMAIL PROTECTED] Subject: RE: [sniffer] Automatic update snafu 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: [sniffer] Automatic update snafu 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? Shaun Sturby, MCSE Manager - Technical Services Optrics Engineering _ IMail Server has scanned this e-mail for Viruses and SPAM using Declude Virus & Declude Junkmail available from www.Optrics.com This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
RE: [sniffer] Automatic update snafu
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 it with a CONT-C and reduce the load on the server. Shaun Sturby, MCSE Manager - Technical Services Optrics Engineering -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Shacklett Sent: Wednesday, August 18, 2004 8:50 AM To: [EMAIL PROTECTED] Subject: RE: [sniffer] Automatic update snafu 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: [sniffer] Automatic update snafu 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? Shaun Sturby, MCSE Manager - Technical Services Optrics Engineering _ IMail Server has scanned this e-mail for Viruses and SPAM using Declude Virus & Declude Junkmail available from www.Optrics.com This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
RE: [sniffer] Automatic update snafu
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: [sniffer] Automatic update snafu 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? Shaun Sturby, MCSE Manager - Technical Services Optrics Engineering -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Shacklett Sent: Wednesday, August 18, 2004 7:33 AM To: [EMAIL PROTECTED] Subject: [sniffer] Automatic update snafu 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 like: 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 thought the -N parameter was supposed to limit that. What am I missing? -- John Shacklett _ IMail Server has scanned this e-mail for Viruses and SPAM using Declude Virus & Declude Junkmail available from www.Optrics.com This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
RE: [sniffer] Automatic update snafu
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? Shaun Sturby, MCSE Manager - Technical Services Optrics Engineering -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Shacklett Sent: Wednesday, August 18, 2004 7:33 AM To: [EMAIL PROTECTED] Subject: [sniffer] Automatic update snafu 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 like: 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 thought the -N parameter was supposed to limit that. What am I missing? -- John Shacklett _ IMail Server has scanned this e-mail for Viruses and SPAM using Declude Virus & Declude Junkmail available from www.Optrics.com This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
RE: [sniffer] Automatic update snafu
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 probably the right one, I can take the scheduler calls to updatesnf.cmd out, and I'll never know there's an issue. Thank you, all three. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michiel Prins Sent: Wednesday, August 18, 2004 10:28 AM To: [EMAIL PROTECTED] Subject: RE: [sniffer] Automatic update snafu 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 Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bonno Bloksma Sent: woensdag 18 augustus 2004 16:22 To: [EMAIL PROTECTED] Subject: Re: [sniffer] Automatic update snafu 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 thought the -N parameter was supposed > to limit that. What am I missing? As I don't know anything about the internals of wget only one thing comes to mind. When you process the mysnfcode.new.gz file does it get deleted? If so, wget has nothing to compare. Groetjes, Bonno Bloksma --- [E-mail scanned at tio.nl for viruses by Declude Virus] This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
RE: [sniffer] Automatic update snafu
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 Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bonno Bloksma Sent: woensdag 18 augustus 2004 16:22 To: [EMAIL PROTECTED] Subject: Re: [sniffer] Automatic update snafu 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 thought the -N parameter was supposed > to limit that. What am I missing? As I don't know anything about the internals of wget only one thing comes to mind. When you process the mysnfcode.new.gz file does it get deleted? If so, wget has nothing to compare. Groetjes, Bonno Bloksma --- [E-mail scanned at tio.nl for viruses by Declude Virus] This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
Re: [sniffer] Automatic update snafu
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 the SortMonster! :-) JS> Anyway. The heavy lifting in that script is a line like: JS> c:\winnt\wget.exe JS> http://www.sortmonster.net/Sniffer/Updates/mysnfcode.snf JS> -N -O mysnfcode.new.gz --header=Accept-Encoding:gzip --http-user=sniffer JS> --http-passwd=password -o snfupd.txt JS> I'm doing something wrong. Everytime the script fires it pulls the file, JS> even if it isn't newer. I thought the -N parameter was supposed to limit JS> that. What am I missing? It looks right. I can't guess what's not working with that, but I can say this. Since you are triggering your script with our update notifications as well as your periodic schedule - you should probably just drop the periodic schedule. Our rulebase compilers send the update notification immediately after a successful compile. That should be the only time a new rulebase is available. Hope this helps, _M This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
Re: [sniffer] Automatic update snafu
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 thought the -N parameter was supposed to limit > that. What am I missing? As I don't know anything about the internals of wget only one thing comes to mind. When you process the mysnfcode.new.gz file does it get deleted? If so, wget has nothing to compare. Groetjes, Bonno Bloksma --- [E-mail scanned at tio.nl for viruses by Declude Virus] This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html