Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.040 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'third-party': 0.04; 'that?': 0.05; 'assuming': 0.09; 'subject:script': 0.09; 'wrote:': 0.18; 'module': 0.19; 'command': 0.22; 'separate': 0.22; 'to:2**1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'program,': 0.31; 'way?': 0.31; 'probably': 0.32; 'run': 0.32; 'could': 0.34; 'common': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'signal': 0.60; 'john': 0.61; 'such': 0.63; 'subject:there': 0.68; 'to:addr:gordon': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=xs7U6ZrANwDbkd3N2or72BTeYNu1c/zfuC1w9ItSRyE=; b=BEZsBmL35AEEDP+3dSDS5K4zaNs5+2tRvXtxUnT0SLoCGC5KrDS7P6OaH5lKu44tY5 Cb8vAa4m/K50crukt1BzF6DYJYLAa5vIxqDOwu1GgVW37z+ZyMkdkdo1qvlJPo1nZOz9 bemepZRVhBmKUkafqtv+l8mE84LbKYJVQfNqSobxQ1QlGXY+ZO+xpAnk54G2o1SCAkLM oVO9adR1WGSXrGEVG/uI6mGfrAv6wu301tRyxgyCiTmYQhVpca1bb697uwishEMsIZoH MxFvwU3D/DcXiqy96q9MKSJa6dUHSdWy1q2QTfFlJcfJzK2phfnaZprSqZxyYjJsxzPu jIlQ== X-Received: by 10.50.82.66 with SMTP id g2mr9922709igy.19.1418845917851; Wed, 17 Dec 2014 11:51:57 -0800 (PST) MIME-Version: 1.0 References: From: Juan Christian Date: Wed, 17 Dec 2014 19:51:57 +0000 Subject: Re: Is there a way to schedule my script? To: John Gordon , python-list@python.org Content-Type: multipart/alternative; boundary=089e0111b848ecb826050a6ecebb X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418845926 news.xs4all.nl 2879 [2001:888:2000:d::a6]:58817 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82609 --089e0111b848ecb826050a6ecebb Content-Type: text/plain; charset=UTF-8 On Wed Dec 17 2014 at 5:45:31 PM John Gordon wrote: You could write a separate program whose only job is to send a STOP or CONTINUE signal to your main program, and then run that program from a scheduler. The standard system "kill" command would probably work for this purpose, assuming you have access to your main program's process ID. There isn't any 'prettier' way? Such as a built-in or third-party module for something common like that? --089e0111b848ecb826050a6ecebb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Wed Dec 17 2014 at 5:45:31 PM John Gordon <= ;gordon@panix.com> wrote:
Yo= u could write a separate program whose only job is to send a STOP or
CO= NTINUE signal to your main program, and then run that program from a
sc= heduler.

The standard system "kill" command would probab= ly work for this purpose,
assuming you have access to your main program= 's process ID.

There isn't any 'prettier'= ; way? Such as a built-in or third-party module for something common like t= hat?=C2=A0
--089e0111b848ecb826050a6ecebb--