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


Groups > comp.lang.python > #82619

Re: Is there a way to schedule my script?

Subject Re: Is there a way to schedule my script?
From Chris Cioffi <chris@evenprimes.com>
Date 2014-12-17 16:34 -0500
References <CAAp0bGvQtEGAQ6+_W=a5U883HAsANW0YaDytua4BrBJkgY4CQg@mail.gmail.com> <CAAp0bGvfvOTocot=dHkdSrBNj-DAXUm_tY=E1ZJ6wuWATotY+g@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.17021.1418854251.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web