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


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

Dynamically scheduling Cron Jobs for Python Scripts.

Started bycoldfire <amangill.coldfire@gmail.com>
First post2012-09-05 23:21 -0700
Last post2012-09-07 22:54 +0200
Articles 4 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Dynamically scheduling Cron Jobs for Python Scripts. coldfire <amangill.coldfire@gmail.com> - 2012-09-05 23:21 -0700
    Re: Dynamically scheduling Cron Jobs for Python Scripts. Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2012-09-06 13:09 +0200
    Re: Dynamically scheduling Cron Jobs for Python Scripts. Miki Tebeka <miki.tebeka@gmail.com> - 2012-09-06 13:17 -0700
      Re: Dynamically scheduling Cron Jobs for Python Scripts. Michael Ströder <michael@stroeder.com> - 2012-09-07 22:54 +0200

#28552 — Dynamically scheduling Cron Jobs for Python Scripts.

Fromcoldfire <amangill.coldfire@gmail.com>
Date2012-09-05 23:21 -0700
SubjectDynamically scheduling Cron Jobs for Python Scripts.
Message-ID<1c24b34d-774f-4613-b6a9-f6f19fb24acb@googlegroups.com>
I have a web scrapper script which run every day at 0100 hrs using cron Job over a shell account.
Now what I am looking for is to re run the same script.
1> The script goes online to scrape some data including a schedule time for my meeting.
I want to re run the script at that schedule time to send me a email.
How can I do that?

Plz Help 

[toc] | [next] | [standalone]


#28576

FromVincent Vande Vyvre <vincent.vandevyvre@swing.be>
Date2012-09-06 13:09 +0200
Message-ID<mailman.293.1346930208.27098.python-list@python.org>
In reply to#28552
On 06/09/12 08:21, coldfire wrote:
> I have a web scrapper script which run every day at 0100 hrs using cron Job over a shell account.
> Now what I am looking for is to re run the same script.
> 1> The script goes online to scrape some data including a schedule time for my meeting.
> I want to re run the script at that schedule time to send me a email.
> How can I do that?
>
> Plz Help 
Have a look at python-crontab

http://pypi.python.org/pypi?name=python-crontab&:action=display

-- 
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>

[toc] | [prev] | [next] | [standalone]


#28634

FromMiki Tebeka <miki.tebeka@gmail.com>
Date2012-09-06 13:17 -0700
Message-ID<2702e6fc-a6f5-4bc1-9c47-216171506128@googlegroups.com>
In reply to#28552
> I want to re run the script at that schedule time to send me a email.
Calculate how much time until the meeting. And spawn the script that will sleep that amount of time and then send email.

[toc] | [prev] | [next] | [standalone]


#28709

FromMichael Ströder <michael@stroeder.com>
Date2012-09-07 22:54 +0200
Message-ID<k2dmuo$op6$1@dont-email.me>
In reply to#28634
Miki Tebeka wrote:
>> I want to re run the script at that schedule time to send me a email.
>
> Calculate how much time until the meeting. And spawn the script that will
> sleep that amount of time and then send email.

And if the process gets interrupted in the meantime (e.g. because of reboot)?

Ciao, Michael.

[toc] | [prev] | [standalone]


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


csiph-web