1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00
bin/serveclip

13 lines
301 B
Text
Raw Normal View History

2017-05-09 17:54:59 +00:00
#!/usr/bin/env bash
### Settings ###
# The port number to listen on.
PortNumber=5557;
################
echo Clipboard serving on localhost:$PortNumber.
echo Press CTRL+C to quit.
while (true); do xclip -selection clipboard -o | nc -Nvl $PortNumber; echo Local clipboard sent to remote host.; done