From: Marc Heiler Date: 2012-01-24T18:18:25+09:00 Subject: Register an action to be done at a later time Hi. I have a "pseudo-shell" and this shell allows me to do something like: "in 30 minutes do start alarm" ^^^ In 30 minutes, mplayer would play some files. So far so fine. Right now when I quit the shell though, this will never be done. So my idea of course is to store this in a file, and on startup of my pseudo-shell, load all those registered tasks. Now here is my question - what would be the best way to do this? Should I store in a yaml file, and on startup load all those yaml files and do a Thread.new {} ? Should I use marshall instead? Or any other ideas? Am very grateful for ideas! I sound extremely incompetent right now because I have never tried to write something like a cron-replacement. (In the future, perhaps a daemon should be running that is doing this on its own... but for now, I want to keep it simpler.) -- Posted via http://www.ruby-forum.com/.