Linux protocol.rb and smtp.rb problem

Z

Zach Dennis

I am moving my ruby program file from my winbox to my linux( redhat 9 ) box.
I've got ruby 1.8.1 installed on my linux box. However when I run my script
the following lines error out:

smtp = Net::SMTP::new( server )
smtp.start( domain , username , password , "cram_md5" )

It complains about:

/usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'initialize': getaddrinfo:
Name or service not known( SocketError )
from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'new'
from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'connect'
from /usr/local/lib/ruby/1.8/net/protocol.rb:82:in 'timeout'
etc...etc...etc...

It works beautifully on my Windows box. Any ideas?

Zach
 

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

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top