Sha256: 53e6e47a880b1a4838a0763e000c51308afe1fce154f683afb1b06934d5810ad
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
#!/usr/bin/env ruby1.9 require "base64" require "#{File.dirname(__FILE__)}/../lib/ruby_process.rb" $stdin.sync = true $stdout.sync = true $stderr.sync = true debug = false pid = nil ARGV.each do |arg| if arg == "--debug" debug = true elsif match = arg.match(/--pid=(\d+)/) pid = match[1].to_i else raise "Unknown argument: '#{arg}'." end end debug = true if ARGV.index("--debug") != nil raise "No PID given of parent process." if !pid rps = Ruby_process.new( :in => $stdin, :out => $stdout, :err => $stderr, :debug => debug, :pid => pid ) rps.listen $stdout.puts("ruby_process_started") rps.join
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_process-0.0.5 | scripts/ruby_process_script.rb |
ruby_process-0.0.4 | scripts/ruby_process_script.rb |