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


Groups > comp.lang.python > #80550

Re: Advice

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.064
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'advice?': 0.09; 'exit': 0.09; 'possible?': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'example': 0.22; 'coding': 0.22; '&gt;': 0.26; 'certain': 0.27; 'header:In- Reply-To:1': 0.27; 'wondering': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'program,': 0.31; 'url:wiki': 0.31; 'url:wikipedia': 0.31; 'run': 0.32; 'maybe': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'url:org': 0.36; 'nov': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'periodically': 0.68; 'day': 0.76; 'want:': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=T4togwhPpJyo5x+ceeCdBRM++Fr/FTk93QE5WNJys6w=; b=H9W1hkbTi9ZfKJm41sUsQgVsAIZ4IpFPrKlEi3C6CBZ8G0Pgl57GH0yFn4xlPnKKuT KMHQEydG3Kzsku9DUgIrxyXV4bnITMpmkyHlpKt3856TcnDjo6jEVQLqlJVguemTdVP3 jMxD7cZiu/VwqUJhNBIe1aGYyaTQ23aAyxkzD56dbsFB71YMr7uSKLYMsTDuOsEeZcmW w1Yf1PikRrVgARDUkmoPFNbc2tx3gbmvZc1vLkai0E8useCgx0q3l2JaINoxuF9Tutjr zjI6jLKIt86aE5qTffUt1xemY+ohckHksOwI7V6aQ4SKdxVS/6KKMu4SJo8Inss8mwSC R2vQ==
X-Received by 10.70.91.10 with SMTP id ca10mr42761192pdb.6.1415730321872; Tue, 11 Nov 2014 10:25:21 -0800 (PST)
MIME-Version 1.0
In-Reply-To <56F22D4D97CACC4D804386157B6CFBBC01CF38B5@SERVER1.epas.local>
References <56F22D4D97CACC4D804386157B6CFBBC01CF38B5@SERVER1.epas.local>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Tue, 11 Nov 2014 11:24:41 -0700
Subject Re: Advice
To Python <python-list@python.org>
Content-Type multipart/alternative; boundary=001a11c251c4eedd9a0507996677
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15685.1415730325.18130.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1415730325 news.xs4all.nl 2849 [2001:888:2000:d::a6]:52453
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80550

Show key headers only | View raw


[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


Thread

Re: Advice Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-11 11:24 -0700

csiph-web