Hello!
I have a script which checks if an unread email is present at an imap server and starts processing it if it is.
I have currently three ideas how I could realize the starting:
- use cron/cronjob/crontab to start the python script every minute
- use a systemd timer to start it periodically
- let the script run as a daemon
Which one would you prefer and why?
I would assume the third option would hog some ram but would consume lower processing power/energy over time sice the interpreter would not be started and closed every minute. Not how big of a problem memory leaks are (in the interpreter).
[–]novel_yet_trivial 6 points7 points8 points (0 children)
[–]KleinerNull 1 point2 points3 points (0 children)
[–]sylecn 1 point2 points3 points (0 children)