script/runner error

C

CiriusMex

Hi folks ^^,

Ok I need some help here. I'm trying to create a script to
automatically send Newsletters every day. The script is ready, but as
I never used ruby script/runner I just wanted to make some test
before. So I created the following script file in my "app" folder
named "newsletter_script.rb" and with the following code:

class NewsletterScript
printf "\nThat's it!"
end

Now when I'm executing the script command "ruby script/runner /app/
newsletter_script.rb" I got the following error:
C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/
commands/runner.rb:47: (eval):1: compile error (SyntaxError)
(eval):1: unknown regexp options - wlttr
(eval):1: syntax error, unexpected tIDENTIFIER, expecting $end
/app/newsletter_script.rb
^ from C:/InstantRails-2.0/ruby/lib/ruby/
site_ruby/1.8/rub
ygems/custom_require.rb:27:in `eval'
from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
rails-2.0.2/lib/com
mands/runner.rb:47
from C:/InstantRails-2.0/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_req
uire.rb:27:in `gem_original_require'
from C:/InstantRails-2.0/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_req
uire.rb:27:in `require'
from script/runner:3

Looked on internet and didn't find any help for this unknow regexp
error (I guess did something wrong but what?!!)...

If anyone as an idea well thanks in advance for the help ;)

PD: If the message is not quite clear just let me know, I'm french and
my english isn't that good :)
 
B

Brian Candler

CiriusMex said:
Ok I need some help here. I'm trying to create a script to
automatically send Newsletters every day.

This is a problem with Rails (or InstantRails), so your question is best
asked on a Rails mailing list.

The Rails framework just happens to be written in the Ruby programming
language. Whilst there are some Rails users here, you'll get much better
coverage on the right list.

You wouldn't ask a question about Firefox on a gcc mailing list :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top