Permalink
Browse files

simple ruby test script

  • Loading branch information...
1 parent dd02219 commit 50194145141de9fafe85d422b98a2d8731ff245e @marshally committed Jun 4, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 test.rb
View
17 test.rb
@@ -0,0 +1,17 @@
+require 'rubygems'
+require 'json'
+require 'pty'
+
+PTY.spawn("./kinectpipe").each do |r,w,p|
+ loop do
+ s = r.gets
+ if s[/\A\{/]
+ begin
+ puts JSON.parse(s).inspect
+ rescue
+ puts s
+ exit
+ end
+ end
+ end
+end

0 comments on commit 5019414

Please sign in to comment.