mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
13 lines
301 B
Text
13 lines
301 B
Text
|
#!/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
|
||
|
|