Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80550
| References | <56F22D4D97CACC4D804386157B6CFBBC01CF38B5@SERVER1.epas.local> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2014-11-11 11:24 -0700 |
| Subject | Re: Advice |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15685.1415730325.18130.python-list@python.org> (permalink) |
[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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Advice Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-11 11:24 -0700
csiph-web