[Tutor] Problem with threading
Alberto Troiano
albertito_g at hotmail.com
Tue May 3 06:24:36 CEST 2005
Hey
I have the users config in a database so the use of a text file is double
work
In answer to Matt the cameras push the photos via ftp at my server at 1
photo every 3 seconds
What can I do????????????
Regards
Alberto
>From: Danny Yoo <dyoo at hkn.eecs.berkeley.edu>
>To: Alberto Troiano <albertito_g at hotmail.com>
>CC: Tutor <tutor at python.org>
>Subject: Re: [Tutor] Problem with threading
>Date: Mon, 2 May 2005 15:26:12 -0700 (PDT)
>
>
>[Side note: try to just send messages to either tutor at python.org, or
>help at python.org, but not both.]
>
>
> > Someone suggested the use of CRON (I'm working over Linux) but how can I
> > built a program to which I can pass an argument???????
> >
> > I mean in CRON I will have to put one task for each user and each script
> > has to check only one user, so I think I have to make something like
> > this in cron:
> >
> > at 5 o clock run python2.2 application_I_build(username)
>
>
>Hi Alberto,
>
>Would things work for you if the list of usernames was defined externally,
>in some sort of text file? It really sounds like each user has some set
>of configuration state, so perhaps it might be useful to do something
>like:
>
> at 5 o clock,
> run python2.2 application_wrapper configuration_file.txt
>
>where configuration_file.txt holds a list of users and other miscellaneous
>server-specific variables. Here, 'application_wrapper' is a simple
>wrapper that itself calls the real 'application_I-build' program with the
>right command line arguments, for each user in the configuration_file.txt.
>
>
>Best of wishes!
>
More information about the Tutor
mailing list