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


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

Re: Advice

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2014-11-11 11:24 -0700
Last post2014-11-11 11:24 -0700
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: Advice Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-11 11:24 -0700

#80550 — Re: Advice

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-11-11 11:24 -0700
SubjectRe: Advice
Message-ID<mailman.15685.1415730325.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Tue, Nov 11, 2014 at 9:53 AM, Mary-Frances McNamee <
MaryFrances.McNamee@epas-ltd.com> wrote:
>
> I am currently working on a bit of coding for a raspberry pi, I was
wondering maybe I could get some advice? I want my program to run for a
certain time, for example 7am-2.30am everyday. Is this possible?

You can set up a cron job to start your program every day at whatever time
you want: http://en.wikipedia.org/wiki/Cron

To shut down the program, have your program periodically check the time and
exit if the time is past the time you want to shut down. Exactly how you do
this would depend on how the program is structured.

[toc] | [standalone]


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


csiph-web