python call a procedure at the specified time
Von
vontio at gmail.com
Wed Sep 15 03:35:26 EDT 2010
I have read the cron man page just now,It says that cron wakes up every
minute to check task.
I will try install/uninstall with cron.
Cheers,
On Wed, Sep 15, 2010 at 3:25 PM, Von <vontio at gmail.com> wrote:
> Thanks Nitin,I wonder how cron works,does it create a timer thread for each
> task?
>>> On Wed, Sep 15, 2010 at 2:35 PM, Nitin Pawar <nitinpawar432 at gmail.com>wrote:
>>> I think to do so either you will need to schedule a cron or write a daemon
>> process which will run continuously.
>> Assuming that its running only once a day or say timely manner daemon will
>> be a costly affair for system resources
>>>> To schedule crons for python, this might be useful (using yaml)
>>>> http://code.google.com/appengine/docs/python/config/cron.html#About_cron_yaml
>>>> Thanks,
>> Nitin
>>>>>> On Wed, Sep 15, 2010 at 11:54 AM, Von <vontio at gmail.com> wrote:
>>>>> Hi Nitin,I need a python solution for that.
>>>>>>>>> On Wed, Sep 15, 2010 at 2:15 PM, Nitin Pawar <nitinpawar432 at gmail.com>wrote:
>>>>>>> are you looking for something like cron?
>>>>>>>> On Wed, Sep 15, 2010 at 11:43 AM, Von <vontio at gmail.com> wrote:
>>>>>>>>> Hi,
>>>>> I have a python script running behind the scene,and I need it to call a
>>>>> method on sunday 9 o'clock.
>>>>> I get an idea,that I get the current time,and calculate the seconds to
>>>>> sunday 9 o'clock,
>>>>> then sleep these seconds and call my method,I think there could be an
>>>>> elegant way to resolve this.
>>>>>>>>>> Regards,
>>>>>>>>>> --
>>>>> http://mail.python.org/mailman/listinfo/python-list
>>>>>>>>>>>>>>>>>>>>>> --
>>>> Nitin Pawar
>>>>>>>>>>>>>>>>> --
>> Nitin Pawar
>>>>>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100915/db4acf3c/attachment-0001.html>
More information about the Python-list
mailing list