Dynamically scheduling Cron Jobs for Python Scripts.

C

coldfire

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
 
M

Miki Tebeka

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.
 
M

Michael Ströder

Miki said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top