Reputation: 1
I have a python code, using Dash, which reads a CSV file and builds up a dashboard. Now I want the code to get stopped daily at 9:15 AM and restart at 9:30 AM (so that in these 15 minutes, the CSV file gets updated). How to achieve the same ?
The code runs on one base system, the other users then access the dashboard using link. The code continues to run on the same base system. And SAS is ued to store the file in that base system. So that is why I want that the code stops at a particular time. The file gets refreshed in that system and then the code restarts.
Upvotes: 0
Views: 247
Reputation: 9396
Depending on the system it's running on, there's different solutions to your problem.
If you've system access and are on a Linux-based OS, the most straightforward way would be to use cron
, https://en.wikipedia.org/wiki/Cron. If you Google you'll find tons of documentation and "how to" guides.
Upvotes: 1