Is there a way to schedule my script?

Chris Cioffi chris at evenprimes.com
Wed Dec 17 16:34:02 EST 2014


Hi Juan,

I don't know what platform you're on, but you've got several options.  

Mac:  setup a launchd job, I use http://www.soma-zone.com/LaunchControl/ to do the setups

Linux/unix:  setup a cron job, depending on your distro launchd may also be an option.

Windows:  setup a scheduled job in ??  (I don't have a windows box around any more, but there was a "Scheduled Jobs" section in windows explorer back in the XP days.  I assume it's still around.

In all cases, you'll need to add a little code in your script to STOP at 11:59, but the OS can handle starting the script.

The launchd option can also act as a watchdog to also restart the script if it fails for some reason.

Hope this helps!


> On Dec 17, 2014, at 2:11 PM, Juan Christian <juan0christian at gmail.com> wrote:
> 
> Ops, sorry.
> 
> It's: 9:00 AM ~ 11:59 PM -> Running
> 
> ... and not 9:00 AM ~ 11:50 PM -> Running
> -- 
> https://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list