Loading clipboard programmatically

Brian McKee brian.mckee at gmail.com
Wed Jun 17 19:37:32 UTC 2009

On Tue, Jun 16, 2009 at 10:32 PM, Ray Parrish<crp at cmc.net> wrote:
> Does anyone know if there is a way to write a script with bash or perl
> which will load a value into the clipboard from a text file?

I think the first question is - which clipboard?

Take a look at 'xclip' -
xclip is a command line utility that is designed to run on any system
with an X11 implementation. It provides an interface to X selections
("the clipboard") from the command line. It can read
 data from standard in or a file and place it in an X selection for
pasting into other X applications. xclip can also print an X selection
to standard out, which can then be redirected to a file
 or another program.

 Homepage: http://people.debian.org/~kims/xclip/

More information about the ubuntu-users mailing list