Ralph Shumaker wrote: > Carl Lowenstein wrote: > >> On 3/22/07, Ralph Shumaker <[EMAIL PROTECTED]> wrote: >> >>> Carl Lowenstein wrote: >>> >>> > On 3/21/07, Ralph Shumaker <[EMAIL PROTECTED]> wrote: >>> > >>> >> I regularly agree to a certain Terms of Use. The first time I did >>> it, I >>> >> was in a hurry and didn't do my normal review of it. What I did >>> instead >>> >> was to click-n-drag to highlight the whole thing, opened an editor, >>> >> middle-clicked (to paste), and saved it (calling it eula). >>> >> >>> >> Each day, I'm required to agree to the same Terms of Use. At least I >>> >> want to make sure that it is the same. So what I do each time is >>> >> highlight the entire text of it, open the editor, paste it, and >>> save it >>> >> as fula. I wrote a simple bash script to compare the two files, and >>> >> another simple bash script to delete fula (so that the next time I >>> tell >>> >> the editor to save as fula, it doesn't ask me "Are you nutz? Are you >>> >> *sure* you want to over write the one you already have?"). >>> >> >>> >> Here's my question: Is there a way that I can (after I highlight the >>> >> entire text of the Terms of Use, as currently displayed) compare the >>> >> contents of the clipboard (or whatever the appropriate name) >>> directly to >>> >> the file "eula"? >>> >> >>> > >>> > Use a different editor? Don't use an editor at all? >>> > >>> > $ cat > fula # cursor advances to next line, you paste from >>> > the clipboard and >>> > # type <enter> <ctrl-D> >>> > $ >>> > >>> > carl >>> >>> $ cat > fula >> >> >> I see no results from "paste from clipboard" here. Either the paste >> didn't work or my instructions did not come through clearly. The >> contents of the clipboard should show up on the terminal screen when >> they are pasted. > > > I *had* not read correctly your instruction. I tried again, and got a > fula that matches eula perfectly except for an extra character at the > end. I tried your instruction yet again, only this time without the > <enter>, and got a fula the same size as eula and diff offered nothing. > > Is there a way during pasting to suppress the screen output?
There is a program, xclip, that you may want to look at. Freshmeat calls it A command line interface to X server selection You have to compile it yourself, but it's not hard: - download the latest vesion (eg, xclip-0.08.tar.gz) some work location, such as /tmp, your desktop or wherever, from http://people.debian.org/~kims/xclip/ - untar with xzf xclip-0.08.tar.gz - then do these: cd xclip xmkmf make sudo make install sudo make install.man That's all. Most of it is explained in the included 'INSTALL' file. Don't be put off by the low version number. It's a simple program that seems to do (at least it's simplest tasks) ok. I encourage you to also read the 'README' file. .. I also played with something called desktop-data-manager, but didn't find much _I_ found useful. BTW, if anyone else has any info about other clipboard utilities, I'd like to hear about them. Regards, ..jim -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
