Sha256: bd07807e2e2d1d75a4321054623169582d8451ca34e1d597d87c15a5cf1baf08
Contents?: true
Size: 351 Bytes
Versions: 2
Compression:
Stored size: 351 Bytes
Contents
require "pty" begin PTY.spawn("spawn-fcgi -n -p 9000 /usr/bin/fcgiwrap -f") do |stdout, stdin, pid| begin stdout.each { |line| print line } rescue Errno::EIO puts "Errno:EIO error, but this probably just means that the process has finished giving output" end end rescue PTY::ChildExited puts "The child process exited!" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smartcloud-0.0.118 | lib/smartcloud/grids/grid-runner/spawner.rb |
smartcloud-0.0.117 | lib/smartcloud/grids/grid-runner/spawner.rb |