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