python program to watch a file - example.

Rob Hall bloke at ii.net
Sun Sep 8 13:27:52 CEST 2002


Get a fucking life Bengt!!!


Bengt Richter <bokr at oz.net> wrote in message
news:ales54$2un$0 at 216.39.172.122...
> On Sun, 8 Sep 2002 01:47:12 -0400, "Wayne R" <wayne at tbnets.com> wrote:
>
> >This is a multi-part message in MIME format.
> Why?
> >
> >------=_NextPart_000_0039_01C256D9.B8CB5320
> >Content-Type: text/plain;
> > charset="us-ascii"
> >Content-Transfer-Encoding: 7bit
> >
> >
> >I am trying to write a python program that will run as a deamon and
> >watch a file for data to arrive and then wake up and perform duties on
> >that data.   I found ways to make a python program run as a deamon but I
> >am at a loss to find anything related to watching a file for data so
> >that it can then process the data.  I didn't really want to do a sleep
> >loop or something like, I am sure there is a better way.
> >
> >Any ideas or links to more info?
> >
> Don't annoy people you want help from, for starters.
> What system are you targeting? (Outlook in the headers says you're on
windows
> generating this abominable mix of actual message and useless cruft).
>
> >------=_NextPart_000_0039_01C256D9.B8CB5320
> >Content-Type: text/html;
> WHY?!!
>
> Regards,
> Bengt Richter





More information about the Python-list mailing list