Dynamically scheduling Cron Jobs for Python Scripts.

Discussion in 'Python' started by coldfire, Sep 6, 2012.

  1. coldfire

    coldfire Guest

    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
    coldfire, Sep 6, 2012
    #1
    1. Advertising

  2. 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>
    Vincent Vande Vyvre, Sep 6, 2012
    #2
    1. Advertising

  3. coldfire

    Miki Tebeka Guest

    > 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.
    Miki Tebeka, Sep 6, 2012
    #3
  4. 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.
    Michael Ströder, Sep 7, 2012
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. T

    Timer vs. Cron Jobs

    Mr. T, Jun 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    722
    Hans Kesting
    Jun 9, 2004
  2. Fazer

    Python and cron jobs.

    Fazer, Aug 4, 2003, in forum: Python
    Replies:
    8
    Views:
    836
    Christos TZOTZIOY Georgiou
    Aug 7, 2003
  3. hardikh2000

    JOBs............JOBs............JOBs

    hardikh2000, Aug 16, 2005, in forum: Python
    Replies:
    0
    Views:
    411
    hardikh2000
    Aug 16, 2005
  4. Replies:
    1
    Views:
    427
    Benjamin Niemann
    Sep 18, 2006
  5. Scheduling ASP Without Cron

    , Mar 8, 2005, in forum: ASP General
    Replies:
    0
    Views:
    110
Loading...

Share This Page