I have read the cron man page just now,It says that cron wakes up every minute to check task.<div>I will try install/uninstall with cron.</div><div><br></div><div>Cheers,<br><br><div class="gmail_quote">On Wed, Sep 15, 2010 at 3:25 PM, Von <span dir="ltr"><<a href="mailto:vontio@gmail.com">vontio@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks Nitin,I wonder how cron works,does it create a timer thread for each task?<div><div></div><div class="h5"><br><br>
<div class="gmail_quote">On Wed, Sep 15, 2010 at 2:35 PM, Nitin Pawar <span dir="ltr"><<a href="mailto:nitinpawar432@gmail.com" target="_blank">nitinpawar432@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think to do so either you will need to schedule a cron or write a daemon process which will run continuously.<div>Assuming that its running only once a day or say timely manner daemon will be a  costly affair for system resources</div>


<div><br></div><div>To schedule crons for python, this might be useful (using yaml) </div><div><a href="http://code.google.com/appengine/docs/python/config/cron.html#About_cron_yaml" target="_blank">http://code.google.com/appengine/docs/python/config/cron.html#About_cron_yaml</a></div>


<div><br></div><div>Thanks,</div><div>Nitin<div><div></div><div><br><br><div class="gmail_quote">On Wed, Sep 15, 2010 at 11:54 AM, Von <span dir="ltr"><<a href="mailto:vontio@gmail.com" target="_blank">vontio@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Nitin,I need a python solution for that.<div><div></div><div><br><br><div class="gmail_quote">On Wed, Sep 15, 2010 at 2:15 PM, Nitin Pawar <span dir="ltr"><<a href="mailto:nitinpawar432@gmail.com" target="_blank">nitinpawar432@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">are you looking for something like cron? <br><br><div class="gmail_quote"><div><div></div><div>On Wed, Sep 15, 2010 at 11:43 AM, Von <span dir="ltr"><<a href="mailto:vontio@gmail.com" target="_blank">vontio@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hi,<div>I have a python script running behind the scene,and I need it to call a method on sunday 9 o'clock.</div><div>I get an idea,that I get the current time,and calculate the seconds to sunday 9 o'clock,</div>



<div>

then sleep these seconds and call my method,I think there could be an elegant way to resolve this.</div><div><br></div><div>Regards,</div>
<br></div></div>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Nitin Pawar<br><br>
</font></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br>Nitin Pawar<br><br>
</div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>