Run a python script every x hours [on hold]
up vote
-4
down vote
favorite
I have a python script which deal with live data provided by an API.
For some reasons the connection is sometimes lost after some hours or days.
It there a way to run or restart the script after x hours?
Or what is the best way to restart the script after the connection is lost?
python
put on hold as too broad by chasep255, BartoszKP, Owen Pauling, greg-449, gnat yesterday
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-4
down vote
favorite
I have a python script which deal with live data provided by an API.
For some reasons the connection is sometimes lost after some hours or days.
It there a way to run or restart the script after x hours?
Or what is the best way to restart the script after the connection is lost?
python
put on hold as too broad by chasep255, BartoszKP, Owen Pauling, greg-449, gnat yesterday
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
4
Schedule the script in crontab.
– Mayank Porwal
yesterday
Besides Mayank's suggestion, you can also use something like: github.com/dbader/schedule
– trollster
yesterday
add a comment |
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
I have a python script which deal with live data provided by an API.
For some reasons the connection is sometimes lost after some hours or days.
It there a way to run or restart the script after x hours?
Or what is the best way to restart the script after the connection is lost?
python
I have a python script which deal with live data provided by an API.
For some reasons the connection is sometimes lost after some hours or days.
It there a way to run or restart the script after x hours?
Or what is the best way to restart the script after the connection is lost?
python
python
edited yesterday
BartoszKP
26.5k1064103
26.5k1064103
asked yesterday
Henry
1
1
put on hold as too broad by chasep255, BartoszKP, Owen Pauling, greg-449, gnat yesterday
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as too broad by chasep255, BartoszKP, Owen Pauling, greg-449, gnat yesterday
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
4
Schedule the script in crontab.
– Mayank Porwal
yesterday
Besides Mayank's suggestion, you can also use something like: github.com/dbader/schedule
– trollster
yesterday
add a comment |
4
Schedule the script in crontab.
– Mayank Porwal
yesterday
Besides Mayank's suggestion, you can also use something like: github.com/dbader/schedule
– trollster
yesterday
4
4
Schedule the script in crontab.
– Mayank Porwal
yesterday
Schedule the script in crontab.
– Mayank Porwal
yesterday
Besides Mayank's suggestion, you can also use something like: github.com/dbader/schedule
– trollster
yesterday
Besides Mayank's suggestion, you can also use something like: github.com/dbader/schedule
– trollster
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
4
Schedule the script in crontab.
– Mayank Porwal
yesterday
Besides Mayank's suggestion, you can also use something like: github.com/dbader/schedule
– trollster
yesterday