two silly questions
bill ramsay
bill.ramsay at clear.net.nz
Fri Jun 4 01:40:08 EDT 2004
More information about the Python-list mailing list
Fri Jun 4 01:40:08 EDT 2004
- Previous message (by thread): two silly questions
- Next message (by thread): Error in small code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 3 Jun 2004 10:49:50 -0500, "Larry Bates" <lbates at swamisoft.com> wrote: >The absolute "best" way to do what you want is to write >an NT service. Mark Hammond's Python Programming on >Win32 has excellent examples of this. NT services >run in the background and can be set to actually sleep >for any amount of time (in microseconds). I've written >several of these and while the learning curve is a >little steep on the front end, the resulting application >is MUCH better. > thanks for this, much appreciated, funnily enough i had a sniff in there today, and i think i found what you are reffering to. kind regards bill ramsay >HTH, >Larry Bates >Syscon, Inc. > >"bill ramsay" <bill.ramsay at clear.net.nz> wrote in message >news:upetb0dimckv16o1b1actl9tngej94enkf at 4ax.com... >> Hello >> >> just found the wonderful world of python in the last two weeks and I >> think that it is great. >> >> I have a couple of questions for those who are wiser a la python than >> I am. >> >> Background: >> >> I have written a program that polls an email account, then pulls down >> the email, it then searches through the email, and depending upon >> type, ie. with or without attachments it does different things. The >> net result is that data is written to access tables for an external >> application to extract the necessary data. >> >> I am using win2k. >> >> the two questions are: >> >> 1. when i want the program to run in a loop, ie. poll the pop3 >> account every 60 seconds, it runs the first time, then it goes into >> 'not responding mode' thereafter, sometimes. Any thoughts? I was >> using sleep(60) but it just hangs, as i said before, it does not >> always do that either! >> >> 2. I wish to use this program at work, I took in an earlier version >> yesterday that just wrote the data to a text file, I wanted to make >> sure the polling thing worked. on microsoft exchange [i know that it >> should, but you never know!!] and it does . When i was there, i >> managed to get the code to run just by double clicking on the code >> ICON, seem to remember doing something with 'open with' can't seem to >> do it here at home. >> >> Both systems run win2k. did i do something sublimilally without >> realising it? what did i do i cannot remember, i have tried opening >> with etc. when i do this all get is a burst of the 'black windows >> box' just in the same way as putting in 'cmd' on the run thing, >> >> as you can see i am not up on all the terms. >> >> if anyone can help, i would appreciate it. >> >> kind regards >> >> bill ramsay. >> >
- Previous message (by thread): two silly questions
- Next message (by thread): Error in small code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list