Automatic Copy of File Contents to Clipboard

Could someone show me how to copy the contents of a file to the clipboard automatically without manually selecting its contents? I just want to press the "Paste Key" to show the results. I wish to use this in a ksh script.

I'm using Solaris.

Thanks!

You may find xclip to be useful.

I downloaded the xclip files and followed the procedure mentioned in the INSTALL.txt file. From /usr/openwin/bin directory, I ran xmkmf and got the following error message:
imake DUseInstalled -I/usr/openwin/bin/lib/X11/config
imake: No such file or directory: No description file. Stop.

Could you please tell me what have I done wrong?

Could someone please help me out with this problem? :confused:

Help from anyone?

Sorry. Didn't mean to ignore you, I somehow overlooked this thread.

Try just running 'make'. You may need to modify the paths in Makefile.