Reading clipboard contents with a bash script
Joel Hammer
Joel
Mon May 17 11:28:27 PDT 2004
There is a standard solution for mutt. You have to get and install a
program called urlview, then reconfigure .muttrc. The download site I found
wouldn't download it last night. Actually, I really don't want to learn
much about mutt. It is just one email client, which I happen to use
right now. But, I want to learn a lot about bash.
I would rather do it with a bash script, since I am working hard on my
scripting skills. Knowing how to access the clipboard contents within a
bash script would allow many interesting things to get done. This is how I
try to improve my scripting skills, solving a real problem.
Joel
On Thu, Mar 14, 2002 at 01:02:36PM +0100, Zoran wrote:
> On Mar 13 Joel Hammer was heard saying:
>
> ->I use mutt, linux, and kde.
>
> <snip>
>
> ->I just highlight the link, switch to an xterm, type n <three mouse click>
> -> and the link opens very nicely.
> ->
> ->Is there a way to run a shell script which would automatically read in
> ->the current contents of the clipboard, thus avoiding the need for the
> ->mouse click?
> ->
> ->I can imagine a mapped key in mutt which would do all of those things
> ->with one key stroke. The main problem is getting the script to see the
> ->clipboard contents.
>
>
>
> *** Joel,
>
> have you read the man and the doc pages for mutt carefully? I use pine so
> in that effect I will not be able to help you but I am sure mutt allows to
> pipe the link to a script. Which means that you just need a script to
> launch the link in Netscape.
>
> I do not know the solution to your mutt problem but I can mail you a
> script which was especially made to launch a browser from within a client
> with a TUI interface. Tell me if you need it.
>
> Cheers,
> Zoran.
> --
> If you find me, please return me to my $HOME: my address is 'cd'.
>
> _______________________________________________
> Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
> Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
More information about the Linux-users
mailing list