Hello out there.
I'm interested of building an app that will read from a .txt file such the below one, a list of commands (mainly bash scripts), run them at the specified intervals and get their output.
Such a file will look like :
Code:
[update]
command=./scripts/updates.sh
interval=7
[time]
command=./scripts/time.sh
interval=16
Which is the best approach on such idea? Should I create a child process for every command and inside it create a timer with the specified interval or there are more efficient ways to do such a thing ?
Any idea or suggestion is welcomed.