[Tutor] First complexity program

Viacheslav Chumushuk voice at root.ua
Wed Sep 15 20:44:51 CEST 2010


On Wed, Sep 15, 2010 at 09:31:45PM +0300, Григор Колев <grigor.kolev at gmail.com> wrote:
> Hi.

Hi, Grigoriy.

> I try to make a program to connect my POS system with Geovision video
> server. I can connect directly with serial port but on the POS no have
> free serial. 
> My POS can send information like file on video server. 
> I can read this file with Python.
> 
> It is first problem:
> My script can looking the directory every 10 second and if have new file
> can opens it but I think have better way to making it.

For monitoring FS try to use pynotify library (http://pyinotify.sourceforge.net/).

-- 
Please, use plain text message format contacting me, and
don't use proprietary formats for attachments (such as DOC, XLS)
use PDF, TXT, ODT, HTML instead. Thanks.


More information about the Tutor mailing list