mirror of https://github.com/sbrl/bin.git
13 lines
301 B
Bash
Executable File
13 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
|
|
|