-2

I writed a little ruby program that collects starred emails from a mailbox and creates corresponding cards in a kanban-style list-making application (thanks to websites' API). It works fine, but for now I have to run it manually (ruby app.rb). I'd like to find a way to run it continually. How can I manage to do so ?

I thought of using launchd to run a service (daemon or agent), but I don't know if it really fits my needs.

Here is my program architecture:

enter image description here

3
  • crontab if it's something that should run at intervals, if it's a subscriber model, then you would need to daemonize it
    – tgmerritt
    May 1, 2020 at 20:48
  • Welcome to SO. I have voted to close your question as being opinion-based. Please take a moment to read stackoverflow.com/help/dont-ask. Specifically, please note To prevent your question from being flagged and possibly removed, avoid asking subjective questions where every answer is equally valid: “What’s your favorite ...?”
    – anothermh
    May 1, 2020 at 21:02
  • Thanks for your feedback! I'm gonna try to rephrase my question for it to follow the rules.
    – Andy
    May 2, 2020 at 6:41

1 Answer 1

0

1) use cron to start program periodically, but maybe any delay between incoming mail and creating card(or something else) 2) use service or agent to minimize time delay

Not the answer you're looking for? Browse other questions tagged or ask your own question.