I have a ruby program that crawls some data from a webservice
(actualy fetches a file from a http, scans the file and puts stuff in a database)
This process updates a database I use in a Rails project.
The crawling takes about 20 minutes and I want to repeat the process every two hours.
I want this all to work as a windows service
I am already running mongrel as a windows service, so it can't be that hard.
Can someone show me a quick example on how I can achieve this.
I assume there is some wrapper code, calling the win32s module,
that calls my programm every two hours, with some sort of a loop,
or can I make this run once and have a scheduled service in windows?
All hints help,