From: Mohit Sindhwani Date: 2007-11-08T04:27:09+09:00 Subject: Re: Windows: Scheduled Ruby script won't run Mohit Sindhwani wrote: > The most common problem is the path. I usually bootstrap my Ruby > script using a .cmd file that sets the path to my Ruby interpreter and > then calls the interpreter with the name of the script. It's always > worked for me. Also, if for some reason, you don't trust the Windows > scheduler, you could use PyCron - it's a cron replacement on Windows > that works very well (specially recommended if you plan to schedule > the script more frequently than just system startup). > *snip* the other problem could be related to 'require' - if you require a file that is in your local directory and not in a system standard path, you will run into problems. You'll need to change directory to the directory where your scripts are before you do the require. Hope this helps. Cheers, Mohit. 11/8/2007 | 3:27 AM.