On May 23, 2007, at 11:54 AM, monarailguy42 wrote: > Hello I am trying to write a simple ruby socket program. I am trying > to communicate to a device that once I establish a TCPSocket > connection I can pass it sql commands and it will return me data. > Here is what I have been trying. > > require 'socket' > begin > t = TCPSocket.new('192.168.0.71', 8080) > rescue > puts "error: #{$!}" > else > # ... do something with the socket > t.write("select read_count from tag_id") did you try with a t.flush or maybe a t.puts("...")?... -- Rolando Abarca rabarca / scio.cl SCIO Ltda. Desarrollo de Software