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


Groups > comp.lang.python > #82606

Is there a way to schedule my script?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <juan0christian@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.076
X-Spam-Evidence '*H*': 0.86; '*S*': 0.01; 'example:': 0.03; 'subject:script': 0.09; "(it's": 0.16; '-&gt;': 0.16; '11:59': 0.16; 'possible?': 0.16; 'bit': 0.19; 'script': 0.25; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'another': 0.32; 'running': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'subject:?': 0.36; 'stopped': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'such': 0.63; 'subject:there': 0.68; '24/7/365': 0.84; 'ugly,': 0.84; '9:00': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=mFkIN9ly/R4bevLUm5RXDy++SogcadRp3bnbGp1EOGc=; b=BLxt+nkvnqg5GjqaOiUzjsyQLXCrF9qGd6i/pSCkPujqKc+u0ECf69WeiKhOCzzphg OOpjPERaXIjwgq/FPX9gcWhHGQxfCf+4/zQG7pEMNIsAnLq9pCenMJXE9E6GeiZI+Aff vZGuAVaKMA3Wt/BDVdgkk8tLeoijc7sfA/awjUaD4UfQhU7caZ/m387JStNZJt2nHdk+ 0bXdqlWKRCB8CABDvmnGMNETl70Gr9X6oGG906RO9dcRhuZ8cANV8ChPZ+hCZsBSrbSH A4BnnLKIMoSZbfpaRbtjEVnB7d2cKG95m8pJohSjquKhZgrZvZoGeTQXeYedw1S0YFCh 5jGQ==
X-Received by 10.50.30.202 with SMTP id u10mr9709885igh.35.1418843454857; Wed, 17 Dec 2014 11:10:54 -0800 (PST)
MIME-Version 1.0
From Juan Christian <juan0christian@gmail.com>
Date Wed, 17 Dec 2014 19:10:54 +0000
Subject Is there a way to schedule my script?
To Python <python-list@python.org>
Content-Type multipart/alternative; boundary=047d7b874b2c1e67eb050a6e3cc4
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.17010.1418843457.18130.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418843457 news.xs4all.nl 2839 [2001:888:2000:d::a6]:48050
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82606

Show key headers only | View raw


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

I know about the schedule modules and such but they work in situations like
'run this in a X hours/minutes/seconds interval', I already have my code in
a while loop with sleep (it's a bit ugly, I'l change to a scheduler soon).

What I really want is, for example:

24/7/365
9:00 AM -> Start
11:59 PM -> Stop

9:00 AM ~ 11:50 PM -> Running
12:00 AM ~ 8:59 AM -> Stopped

I want my script to start at a given time and stop at another given time,
is that possible?

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


Thread

Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-17 19:10 +0000
  Re: Is there a way to schedule my script? John Gordon <gordon@panix.com> - 2014-12-17 19:41 +0000
    Re: Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-17 19:51 +0000
      Re: Is there a way to schedule my script? John Gordon <gordon@panix.com> - 2014-12-17 20:23 +0000
        Re: Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-17 20:42 +0000
        Re: Is there a way to schedule my script? Chris Angelico <rosuav@gmail.com> - 2014-12-18 08:34 +1100
        Re: Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-17 21:47 +0000
        Re: Is there a way to schedule my script? Michael Torrie <torriem@gmail.com> - 2014-12-18 09:45 -0700
  Re: Is there a way to schedule my script? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-18 10:39 +1100
    Re: Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-18 01:04 +0000
    Re: Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-18 12:37 +0000
    Re: Is there a way to schedule my script? Ian Kelly <ian.g.kelly@gmail.com> - 2014-12-18 09:23 -0700
    Re: Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-18 22:13 +0000
    Re: Is there a way to schedule my script? Chris Angelico <rosuav@gmail.com> - 2014-12-19 12:32 +1100
    Re: Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-19 01:55 +0000
    Re: Is there a way to schedule my script? Terry Reedy <tjreedy@udel.edu> - 2014-12-19 00:58 -0500
  Re: Is there a way to schedule my script? Josh English <Joshua.R.English@gmail.com> - 2014-12-18 09:13 -0800
    Re: Is there a way to schedule my script? Juan Christian <juan0christian@gmail.com> - 2014-12-18 18:29 +0000

csiph-web