I don't know which script you are referring to. If you pasted my script
into start_browser.sh, why don't you send me start_browser.sh and I'll
look at it and try running it on my box.
And, you don't need to limit this shell to run just from mutt. I run this
script from any application running in X.
Joel

On Sun, May 12, 2002 at 10:27:05PM +0200, Marco Fioretti wrote:
> Joel,
> 
> thanks for the script. I put in .muttrc this macro
> 
> macro pager \cn "!/home/marco/bin/start_browser.sh\n" 'open URL'
> 
> Now netscape starts every time with the last selected URL, but I get
> this error : 
> 
> sh: -c: line 1: unexpected EOF while looking for matching `"'
> sh: -c: line 2: syntax error: unexpected end of file
> 
> I  have only changed the path to netscape, what could it be? 
> Maybe some weird character came in pasting from one rxvt to emacs?
> I am using bash, and the browser starts correctly, but that problem
> is really bad because it messes up the mutt pager window. I could add
> a >2 /dev/null, but I'd rather understand what's happening.
> 
> Any help is appreciated!
> 
>       Ciao,
>               Marco Fioretti 
> 
> On Sun, May 12, 2002 08:55:54 at 08:55:54AM -0400, Joel Hammer wrote:
> 
>  > Opps. In my first post I sent the wrong version of my DisplayHTML script.
> > Sorry.
> > Joel
> > 
> > 
> > #!/bin/bash
> > a=`ps ax | grep mozilla | grep -v grep`
> > # [ "$a" ] || a=`ps ax | grep netscape | grep -v grep`
> > [ -n "$a" ] && {
> >             /usr/local/netscape/netscape -remote "openURL(`xclip -o`)" &
> >      }
> > [ -z "$a" ] && {
> >             /usr/local/netscape/netscape "`xclip -o`" &
> >                 }            
> > 
> >  On Sun, May 12, 2002 at 11:55:16AM +0200, Marco Fioretti wrote:
> > > Hello,
> > > 
> > > some weeks ago there was a discussion here about how to make URLs
> > > clickable from within mutt, and somebody suggested the xclip program.
> > > 
> > > I have installed it, and added ti .muttrc the macro:
> > > 
> > >   macro pager \cn "!mozilla `xclip -o` &\n"
> > > 
> > > Now when I highlight some URL with the left button, and hit Control-n
> > > mozilla does start but not on that URL. It seems that the URL selected
> > > the first time remains in "memory": in other words, the first time
> > > mozilla opens the page I select, and reopens it even if I select
> > > another URL in the same or another message. What could it be?
> > > 
> > > (using mutt in rxvt/KDE/RH 7.2)
> > > 
> > >   TIA,
> > >           Marco Fioretti
> > > 
> > > -- 
> > > The three most dangerous things are a programmer with a soldering
> > > iron, a manager who codes, and a user who gets ideas.
> 
> -- 
> We shall serve God, family and country, in that order, because without
> the one before it, each would perish.

Reply via email to