Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82619 > unrolled thread

Re: Is there a way to schedule my script?

Started byChris Cioffi <chris@evenprimes.com>
First post2014-12-17 16:34 -0500
Last post2014-12-17 16:34 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Is there a way to schedule my script? Chris Cioffi <chris@evenprimes.com> - 2014-12-17 16:34 -0500

#82619 — Re: Is there a way to schedule my script?

FromChris Cioffi <chris@evenprimes.com>
Date2014-12-17 16:34 -0500
SubjectRe: Is there a way to schedule my script?
Message-ID<mailman.17021.1418854251.18130.python-list@python.org>
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@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web