“Listen” to config.json file changes #79
derrick-tao
started this conversation in
Ideas
Replies: 1 comment
-
There are a few Linux tools you can use (I’m not sure about Windows) to accomplish this. You can use Python to do this by using watchdog. This might work on Windows too. You can also use inotify to restart the script when the config file changes. Implementing this feature within the script would be pretty difficult because all of the processes in the script need to be updated, not just the main one. I’m interested to know what you end up doing to accomplish this. Good luck! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible for the script to automatically listen to the config.json file changes? Basically I want to make this configuration file public on a web server so that others can input their flights and the script to automatically take on the changes. Currently, I can use a cronjob to restart the script every midnight but maybe there’s a better way?
Beta Was this translation helpful? Give feedback.
All reactions