Sha256: f5820ee161ddb1a810a588c2d95e64623315a4156d7a4b1800567d62fee1792c

Contents?: true

Size: 393 Bytes

Versions: 55

Compression:

Stored size: 393 Bytes

Contents

#!/usr/bin/env ruby

require 'socket'

copy_remote_host_port = ENV['COPY_REMOTE_HOST_PORT'] and
  copy_remote_host_port =~ /\A([^:]+):([^:]+)\z/ or
  fail "environment variable COPY_REMOTE_HOST_PORT of form host:port required"
copy_remote_host, copy_remote_port = $1, $2

clipboard = TCPSocket.new(copy_remote_host, copy_remote_port)
until STDIN.eof?
  clipboard.write STDIN.read(1 << 16)
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
utils-0.22.1 bin/remote_copy
utils-0.22.0 bin/remote_copy
utils-0.21.2 bin/remote_copy
utils-0.21.1 bin/remote_copy
utils-0.21.0 bin/remote_copy
utils-0.20.0 bin/remote_copy
utils-0.19.0 bin/remote_copy
utils-0.18.1 bin/remote_copy
utils-0.18.0 bin/remote_copy
utils-0.17.0 bin/remote_copy
utils-0.16.0 bin/remote_copy
utils-0.15.1 bin/remote_copy
utils-0.15.0 bin/remote_copy
utils-0.14.0 bin/remote_copy
utils-0.13.0 bin/remote_copy
utils-0.12.0 bin/remote_copy
utils-0.11.0 bin/remote_copy
utils-0.10.1 bin/remote_copy
utils-0.10.0 bin/remote_copy
utils-0.9.0 bin/remote_copy