xclip

Charles Howse chowse at charter.net
Fri Jan 1 15:48:25 UTC 2010



> -----Original Message-----
> From: Thomas Adam [mailto:thomas.adam22 at gmail.com]
> Sent: Friday, January 01, 2010 9:26 AM
> To: Charles Howse
> Cc: 'FreeBSD-Questions'
> Subject: Re: xclip
> 
> On Fri, Jan 01, 2010 at 09:15:21AM -0600, Charles Howse wrote:
> > Hi,
> > I have need for a command-line tool to copy to the clipboard in
> FreeBSD 6.4.
> > As in: command | xclip
> > Looked at xclip and xclipboard -
> > http://www.freebsd.org/cgi/ports.cgi?query=xclip&stype=all
> >
> > I can't tell by the dependencies if this requires the X gui.  I'm
> running
> > command-line-only and DON'T want to install X.
> > Can anyone help?  Thanks!
> 
> Yes it does require X, because it puts it in the PRIMARY_SELECTION.
> 
> What are you trying to do?

Hi Thomas, thanks for the reply.
This is kinda gnarly.  I'm using VMware Player on Windows 7, FreeBSD is the
guest OS.
I have a script that outputs some text that I would like in the clipboard
that I can paste into an email in Windows Outlook.

#!/bin/sh

file=sig.txt
f=hmmmm.txt
n=`jot -r 1 1 791`

echo > $file
echo >> $file
echo "--" >> $file
echo "Thanks," >> $file
echo "Charles" >> $file
echo >> $file
echo "Things that make you say, Hmmmmmm..." >> $file
sed -n $n\p $f >> $file
#"Copy $file to clipboard"
#rm $file





More information about the freebsd-questions mailing list