Subject: UNIX Pine w/Netscape

From: Jeff Shabel <[email-masked]>
Date: Thu, 10 May 2001 17:26:39 -0700 (PDT)

Hello,

	I currently can get pine to launch Netscape to view URLs from
within emails.  However, I usually already have a Netscape broswer open.  I
would like to have pine tell that browser to go to that location.  (rather
than open a new window)  To do that, this is the command I would need to
enter on the UNIX command line:

netscape -remote 'openURL(<insert_url_here>)'

	But I can't figure out how to configure pine to do this.  I went
into the config area but all it asks me for is the executable name.  The
problem is that I need to stick the trailing ) and ' characters after the
URL name.  
	Any suggestions?  

Thanks,
Jeff Shabel

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: John Soper <[email-masked]>
Date: Fri, 11 May 2001 11:09:31 +1000 (AEST)

Jeff,

The following script handles this situation checking for whether netscape
is running.

It also handles pine's ability to read html attachments or messages in
netscape.

John

---------
#!/bin/sh
# short script to invoke netscape from within pine as a background
# process, so pine can continue.  Only arg is the URL.
# Author: Ed Arnold <[email-masked]> , but modified by Mike Miller & John
# Soper
NETSCAPE=/usr/bin/netscape
URL=`echo $1 | sed 's/,/%2C/g'`

#
# handle viewing HTML attachment or message files
#
ATTACH=`echo $URL | grep /tmp/img-HTM | wc -l`
if [ $ATTACH = 1 ]; then
    cp $URL ${URL}.html
    URL=${URL}.html
fi

if [ -h $HOME/.netscape/lock ]; then
   $NETSCAPE -noraise -remote openURL\("$URL"\,new_window\) &
else
   $NETSCAPE "$URL" &
fi
-----------
John Soper  -----------------------------------------------------------------
Systems Development & Integration                        [email-masked]
The University of Melbourne                                   +61 3 8344 5612
-----------------------------------------------------------------------------