I have small program that need to be executed every 5 minutes.
For now, I have shell script that perform that task, but I want to provide for user ability to run it without additional scripts via key in CLI.
What is the best way to achieve this?
I have small program that need to be executed every 5 minutes.
For now, I have shell script that perform that task, but I want to provide for user ability to run it without additional scripts via key in CLI.
What is the best way to achieve this?
Copyright © 2021 Jogjafile Inc.
I presume you'll want something like that (more or less pseudocode):
If you need to pass some more complex data from the input thread to the processing thread,
MVar
s orTVar
s could be a better choice thanIORef
s.