#!/usr/bin/env ruby $LOAD_PATH << "#{File.dirname(__FILE__)}/../../lib" require 'passenger/message_channel' include Passenger reader = MessageChannel.new(STDIN) writer = MessageChannel.new(STDOUT) writer.write_scalar(reader.read_scalar << "!!") writer.write_scalar(reader.read_scalar << "??") writer.close