I'm trying to give the following command:
echo "hi" | xclip -selection c
This doesn't work? It has worked in the past, but never consistently. I also tried
echo "hi" | xclip -selection primary
echo "hi" | xclip -selection clipboard
etc....
xclip is installed (I'm pretty familiar with Linux :-) ) and there is no output, it just moves onto the next line and my clipboard contents do not change.
Here is my linux version:
[1450] cgeorge@uaf-7 $ cat /proc/version
Linux version 2.6.18-371.1.2.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)) #1 SMP Tue Oct 22 12:51:53 EDT 2013
xclip: command not found
as an error when you try the command? That means,xclip
is not installed and you need to install it. Also, please mention what linux OS you are using and also paste the output of the commands you tried in the question.xsel -b
work? (It should be equivalent toxclip -selection clipboard
.) Runecho wibble | strace -o copy.strace xclip -selection clipboard
andstrace -o paste.strace xclip -selection clipboard -o -
and post the resulting traces.