Running a process every N days

D

danmcleran

What's the best way to run either an entire python process or a python
thread every N days. I'm running Python 2.4.3 on Fedora Core 5 Linux.
My code consists of a test and measurement system that runs 24/7 in a
factory setting. It collects alot of data and I'd like to remove all
data older than 30 days. My ideal solution would be something that
runs in the background but only wakes up to run every few days to
check for old data.

Thanks,

Dan McLeran
 
D

David Bear

What's the best way to run either an entire python process or a python
thread every N days. I'm running Python 2.4.3 on Fedora Core 5 Linux.
My code consists of a test and measurement system that runs 24/7 in a
factory setting. It collects alot of data and I'd like to remove all
data older than 30 days. My ideal solution would be something that
runs in the background but only wakes up to run every few days to
check for old data.

Thanks,

Dan McLeran


And you can use cron to launch your python program?
 
K

Klaas

What's the best way to run either an entire python process or a python
thread every N days. I'm running Python 2.4.3 on Fedora Core 5 Linux.
My code consists of a test and measurement system that runs 24/7 in a
factory setting. It collects alot of data and I'd like to remove all
data older than 30 days. My ideal solution would be something that
runs in the background but only wakes up to run every few days to
check for old data.

google "cron"

-Mike
 
D

Diez B. Roggisch

What's the best way to run either an entire python process or a python
thread every N days. I'm running Python 2.4.3 on Fedora Core 5 Linux.
My code consists of a test and measurement system that runs 24/7 in a
factory setting. It collects alot of data and I'd like to remove all
data older than 30 days. My ideal solution would be something that
runs in the background but only wakes up to run every few days to
check for old data.

Use cron, the periodic task scheduler of your OS.

Diez
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top