From owner-freebsd-questions@FreeBSD.ORG Fri Dec 26 08:01:08 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D7B916A4CE for ; Fri, 26 Dec 2003 08:01:08 -0800 (PST) Received: from ms-smtp-02-eri0.southeast.rr.com (ms-smtp-02-lbl.southeast.rr.com [24.25.9.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B14043D39 for ; Fri, 26 Dec 2003 08:01:06 -0800 (PST) (envelope-from wegster@mindcore.net) Received: from mindcore.net (rdu162-234-100.nc.rr.com [24.162.234.100]) hBQG13Ab021869; Fri, 26 Dec 2003 11:01:04 -0500 (EST) Message-ID: <3FEC5B3F.70801@mindcore.net> Date: Fri, 26 Dec 2003 11:01:03 -0500 From: Scott W User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pat Lashley References: <3FE64DDE.8090802@mindcore.net> <2063146224.1072431531@[192.168.0.13]> In-Reply-To: <2063146224.1072431531@[192.168.0.13]> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd questions Subject: Re: Any (easy)way to copy contents of a file into X clipboard? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2003 16:01:08 -0000 Pat Lashley wrote: > --On Sunday, December 21, 2003 20:50:22 -0500 Scott W > wrote: > >> >> Hey all..was wondering if anyone knew of a utlity to copy the contents >> of a text file into an X clipboard buffer? >> >> It's possible via the use of xmessage or any other X editor that allows >> you to select all text, but something command line only would be >> useful... >> I'm sure something exists somewhere, but I'm not having any luck as of >> yet...anyone? > > > Have you tried /usr/ports/x11/xclip ? > > > > -Pat > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Actually, no...it hadn't been installed, so I did so. I just tried it, but it appears to have a buffer size limitation, or I may be using it wrong: xclip -i /home/wegster/bsd/freeBSDInstall.txt completes, but then doesn't seem to have filled the X clipboard buffer, as pasting into an open text file produces no output. xclip -i Makefile (using xclips Makefile) does work as advertised, while cat /home/wegster/bsd/freeBSDInstall.txt | xclip doesn't produce any output, but cat Makefile | xclip works....so looks like a non-dynamic buffer being used. If anyone has any ideas (cmd params I'm missing) I'd appreciate it, otherwise I'll dig into the source and see what it's doing with respect to buffer allocation. Thanks, (definately closer than I was ) Scott