4 require "./cgi-bin/implementation"
5 require "./cgi-bin/activetem"
9 def initialize(activetem)
11 #get TEM_Instrument info
12 @@host = $tem["#{activetem}"]["host"]
13 @@port = $tem["#{activetem}"]["port"]
15 #set TEM_instrument info
16 tem = File.open("./cgi-bin/activetem.rb","w")
17 tem.write "$activehost = '#{@@host}'\n$activeport = '#{@@port}'\n"
25 log = File.open("./File/log.txt","a")
26 socket = TCPSocket.open($activehost,$activeport)
27 socket.puts "Connect:#{@@tem}"