> An IP Camera will send images to the server via ftp to a folder.
> Each user has a folder and I want to know how I can make my app to
> check the folders ('cause there is going to be many cameras sending
> files and that means that the app will have to check every folder)
> every x seconds?

> Will I have to make one process for every user or one for each
> user??????

I bet you could get it to work both ways (seperate threads for each
folder, or a single thread that checks all the folders one at at time).

Once you detect that there are pictures in someone's folder, what do
you do with them?

Also I posted this short message about my first experiences with
threading about a year ago, in case it helps:

> - def a function that you want to get executed in a subthread
> - create a new thread, feed it the name of the function above
> - start the new thread
> 
> at this point, you need not execute any further statements in your
> program. The main program will wait indefinitely for the child thread
> to complete. Once it's done, the main program will exit too. It's kind
> of neat to watch, the first time you try it.

Alan

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to