From: Chad Perrin Date: 2008-01-03T18:41:50+09:00 Subject: Re: Clipboard command line utility On Thu, Jan 03, 2008 at 06:09:58AM +0900, dfinnie wrote: > I've been doing a lot of Python for Google's Highly Open Participation > contest lately but finally found the time to make a utility I thought > of a few weeks ago. Basically, it allows you to pipe to and from the > clipboard on the command line. Example: > > daniel@daniel-desktop:~$ echo 'ruby' | clipboard > daniel@daniel-desktop:~$ clipboard > ruby > daniel@daniel-desktop:~$ I'm not saying you shouldn't write this utility -- I've been known to duplicate existing utilities at times, too, sometimes with a good reason and sometimes for less-good reasons. However . . . Are you aware there's a commonly available utility for this already called xclip? I use it pretty extensively. ren@kokopelli:~> echo 'ruby'|xclip ren@kokopelli:~> xclip -o ruby ren@kokopelli:~> cat books.txt Policy Made Easy ren@kokopelli:~> xclip books.txt ren@kokopelli:~> xclip -o Policy Made Easy ren@kokopelli:~> . . . et cetera. FreeBSD: root@host:/> portinstall xclip (assuming you use portupgrade) Debian: root@host:/# apt-get install xclip If you already knew about xclip, I'm curious why you are writing what amounts to a Ruby replacement for it. Are you just practicing? Do you want to rewrite a bunch of utilities in Ruby kinda like the Perl Power Tools? Do you dislike the xclip licensing? Feel free to refuse to cater to my idle curiosity. I'm just nosy that way. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Leon Festinger: "A man with a conviction is a hard man to change. Tell him you disagree and he turns away. Show him facts and figures and he questions your sources. Appeal to logic and he fails to see your point."