c.rb: ruby1.8-compatible

This commit is contained in:
Denis Knauf 2010-09-29 14:11:18 +02:00
parent ed0d2684c1
commit b247feec64

4
c.rb
View file

@ -36,13 +36,13 @@ if Process.fork
tor.last.close
$stdout.reopen tos.last
tos.first.close
$stderr.puts( {proc: 'c', machine: machine, source: source}.inspect)
$stderr.puts( {:proc => 'c', :machine => machine, :source => source}.inspect)
exec 'ssh', machine, 'perl', '-e', File.readall( File.join( libexec, 's.pl')).shdump, source.shdump
else
$stdin.reopen tos.first
tos.last.close
$stdout.reopen tor.last
tor.first.close
$stderr.puts( {proc: 'c', exec: 'reciever', destination: destination}.inspect)
$stderr.puts( {:proc => 'c', :exec => 'reciever', :destination => destination}.inspect)
exec 'perl', File.join( libexec, 'r.pl'), destination
end