1
0
Fork 0
bin/listenclip

12 lines
288 B
Bash
Executable File

#!/usr/bin/env bash
### Settings ###
# The port number to listen on.
PortNumber=5556;
################
echo Clipboard listening on localhost:$PortNumber.
echo Press CTRL+C to quit.
while (true); do nc -l $PortNumber | xclip -selection c; echo Local clipboard set by remote host.; done