c.rb: ruby1.8-compatible
This commit is contained in:
parent
ed0d2684c1
commit
b247feec64
4
c.rb
4
c.rb
|
@ -36,13 +36,13 @@ if Process.fork
|
||||||
tor.last.close
|
tor.last.close
|
||||||
$stdout.reopen tos.last
|
$stdout.reopen tos.last
|
||||||
tos.first.close
|
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
|
exec 'ssh', machine, 'perl', '-e', File.readall( File.join( libexec, 's.pl')).shdump, source.shdump
|
||||||
else
|
else
|
||||||
$stdin.reopen tos.first
|
$stdin.reopen tos.first
|
||||||
tos.last.close
|
tos.last.close
|
||||||
$stdout.reopen tor.last
|
$stdout.reopen tor.last
|
||||||
tor.first.close
|
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
|
exec 'perl', File.join( libexec, 'r.pl'), destination
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue