Hi all,
I'd like to execute python script for specific times. I prefer not to
use cron, since this times will be very varies.
Example, my requirement is, this python script will execute at:
13:00:00
14:05:00
14:35:00
15:20:00
I know this is gonna be a long script to run. Check the time.ctime()
On 15/04/13 06:59, Zaki Akhmad wrote:
I'd like to execute python script for specific times. I prefer not to
use cron, since this times will be very varies.
multiple cron jobs will be less work for your computer than running a
long term program constantly checking times and launching your
On Mon, Apr 15, 2013 at 3:51 PM, Alan Gauld alan.ga...@btinternet.com wrote:
multiple cron jobs will be less work for your computer than running a long
term program constantly checking times and launching your scripts... That's
called reinventing the wheel with a square one...
There are more
I want to write a twitter bot which runs on a specific time. For an
idea, I'd like to have this twitter bot tweet every sunrise and
sunset, everyday. Since everyday the sunrise and the sunset time are
vary, what are the best way to do it?
Have the bot calculate sunrise and sunset for the
I assume that you are getting these times from somewhere, hopefully a
website. To do as Steve says, you would just scrape (or use the API if
there is one) to get the times, and schedule a tweet at that time. If you
do use cron you can make use of https://pypi.python.org/pypi/python-crontab
On 15
On 15/04/13 19:23, Zaki Akhmad wrote:
On Mon, Apr 15, 2013 at 3:51 PM, Alan Gauld alan.ga...@btinternet.com wrote:
multiple cron jobs will be less work for your computer than running a long
term program constantly checking times and launching your scripts... That's
called reinventing the wheel