RE: [sniffer] Autoupdating rule file

2004-02-12 Thread Patrick Rateliff
Title: Message



I am 
working out the details on a Python script that will be triggered by a program 
alias to update. The script is based on the Python programming (www.python.org) language and hope to be 
completed with it today. 

There 
are a few files located at http://www.sortmonster.com/MessageSniffer/Help/AutomatingUpdatesHelp.htmlthat 
may help you. 

I have 
been asked why Python? and I say cuz I don't like batch files and I like Python 
:-)

Anyway 
when I get this bad boy done (hopefully today) I will send it over to you if you 
want it.


-Patrick.--Patrick RateliffNetwork 
AdministratorLakeville Area Public 
Schools952.469.7947[EMAIL PROTECTED] 


  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
  Behalf Of Timothy C. BohenSent: Thursday, February 12, 2004 
  7:58 AMTo: [EMAIL PROTECTED]Subject: [sniffer] 
  Autoupdating rule file
  I bought Pyrobatch FTP, nice little program, figured 
  I could use itfor other things.
  
  But I'm having some problems getting the script going 
  to update my file.
  
  Anyone willing to send me a script that I can 
  use?
  
  Thanks!!
  
  
  
  Timothy C. BohenCMSInter.Net LLC / Crystal MicroSystems 
  LLC===web : 
  www.cmsinter.netemail: [EMAIL PROTECTED]phone: 989.235.5100 
  x222fax : 989.235.5151


RE: [sniffer] Autoupdating rule file

2004-02-12 Thread Michiel Prins
I use WGET, which is available for free on the internet. This is my script:
 

c:
cd \MDaemon\Sniffer
 
wget
http://sniffer:[EMAIL PROTECTED]/Sniffer/Updates/12345678.snf -O
serial.tst
if exist 12345678.tst goto Test
goto Done
 
:Test
snf2check.exe 12345678.tst abcdefghijklmnop
if errorlevel 1 goto Done
 
if exist 12345678.old del 12345678.old
ren 12345678.snf 12345678.old
ren 12345678.tst 12345678.snf
 
:Done
 
if exist 12345678.tst del 12345678.tst
-


Replace '12345678' with your licenseID and 'abcdefghijklmnop' with your
rulebase password. This script also keeps a .old file which is your previous
rulebase in case you need to rollback. You can execute this script
automatically every few hours or have it triggered when the update notice is
mailed to you.


Regards,
Michiel





From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Timothy C. Bohen
Sent: donderdag 12 februari 2004 14:58
To: [EMAIL PROTECTED]
Subject: [sniffer] Autoupdating rule file


I bought Pyrobatch FTP, nice little program, figured I could use it for
other things.
 
But I'm having some problems getting the script going to update my file.
 
Anyone willing to send me a script that I can use?
 
Thanks!!
 
 
 

Timothy C. Bohen
CMSInter.Net LLC / Crystal MicroSystems LLC
===
web  : www.cmsinter.net
email: [EMAIL PROTECTED]
phone: 989.235.5100 x222
fax  : 989.235.5151 


---
This message has been scanned for spam and viruses by Reject
http://www.reject.nl  


This E-Mail came from the [EMAIL PROTECTED] mailing list. For information and 
(un)subscription instructions go to 
http://www.sortmonster.com/MessageSniffer/Help/Help.html


Re: [sniffer] Autoupdating rule file

2004-02-12 Thread Madscientist
At 10:49 AM 2/12/2004, you wrote:

On Feb 12, 2004, at 8:58 AM, Timothy C. Bohen wrote:

Anyone willing to send me a script that I can use?


Sure, here's mine written in Perl.  It knows enough to check the 
timestamps so it doesn't fetch files when unecessary, keeps a backup copy, 
and does everything in a safe manner such as to not leave your system in 
an unusable state at any time.  It relies on the fact that the rename() 
function is atomic.  I don't make that guarantee on non-unix systems.
Slightly off topic -

Be careful with that assumption. rename() is NOT atomic on windows systems. 
You script should work since it won't be competing with multiple instances 
of itself and is not coordinating with other threads, but it's good to keep 
in mind for other projects. Similarly, writes to files in append mode are 
also not atomic in windows. Watch out!

_M

This E-Mail came from the [EMAIL PROTECTED] mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html