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?










share|improve this 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















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?










share|improve this 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













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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

A Topological Invariant for $pi_3(U(n))$