From: Dossy Date: 2003-01-07T06:26:03+09:00 Subject: Re: WIN32 Serial Port On 2003.01.07, Dossy wrote: > On 2003.01.07, Dossy wrote: > > On 2003.01.07, Travis Whitton wrote: > > > Is it possible to access the serial port using ruby on windows? If so, > > > where can I find some example code on doing so? > > > > File.open("COM1:") { |io| > > Oops, slight omission: > > File.open("COM1:", "r+") { |io| > > > io.puts "ATDT5551212" > > puts io.readline > > } Should have tested this before I sent it to the list. It doesn't seem to work under WinXP ... not sure why, though. -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)