From: Mohit Sindhwani Date: 2007-11-08T16:27:46+09:00 Subject: Re: Windows: Scheduled Ruby script won't run bdezonia@wisc.edu wrote: > > Awesome idea Mohit (thanks!) but it does not work for me. The .rb > script will launch via a .cmd file from a command prompt. Now when I > try to start a scheduled task it at least does something. It returns > an error code of one. My file that is written to by the first line of > the script every time it is launched does not show any record of the > program actually being launched. And I did not see either the .rb file > or the ruby.exe show up in task manager (or any .cmd file either). The > only require statement refers to 'net/smtp'. Any more ideas? > Hmm, OK.. Can you show us what the .cmd file does - from your statement above, it seems that the launcher will run the .cmd file. Things don't work after that? If that's the case, the problem is either in the .cmd file or the .rb script. If you could show us your .cmd and/ or .rb, it may help. Anyway, take a look to see if there's anything in your code that assumes opening a file in a specific directory or something. If you're using SMTP at startup, are you sure that the network is up? It could be that it fails to connect to the network? Anyway, it's difficult to double guess without seeing what you're trying to do. Cheers, Mohit. 11/8/2007 | 3:15 PM.