1
0
Fork 0
bin/listenclip

12 lines
288 B
Plaintext
Raw Normal View History

2017-02-24 18:19:14 +00:00
#!/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