Subject: URL Viewing

From: Allen Ziegenfus <[email-masked]>
Date: Wed, 20 Mar 2002 12:40:53 -0500 (EST)

When I view a URL from Pine, it brings up my browser fine. However, I was
wondering if there was a way to get the browser to come up separately,
without 'blocking' Pine (I can't read my email while viewing the URL). I
tried inserting a & in the URL viewer command, but that didn't seem to
work.

Any ideas? I tried searching some of the various FAQs and didn't find
anything on this.

P.S. Is this the appropriate forum for these types of questions?

Allen

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

---

From: Murphy <[email-masked]>
Date: Wed, 20 Mar 2002 18:57:20 +0100 (MET)

>Any ideas? I tried searching some of the various FAQs and didn't find

For me it's working only if the browser is already opened. Fo example:

1) Netscape

url-viewers               = "/usr/local/bin/netscape -remote 'openURL(_URL_,new-window)'"

2) Opera

url-viewers               = "/usr/local/bin/opera -newwindow _URL_"

For the IE I didn't try because there is no IE under Unix. :)

Regards,
Murphy

-- 
  __   __
  ||   ||
 -++- -++- --------------------------------------------------------
  ||\ /||  e-mail: [email-masked]           GG 107745
  ||   ||  Everything is possible - this is only a question of time
  \/564\/  --------------------------------------------------------

---

From: Mark Montague <[email-masked]>
Date: Wed, 20 Mar 2002 13:12:06 -0500 (EST)

> For the IE I didn't try because there is no IE under Unix. :)

Well, there's no IE for the majority of flavors of Unix, but
IE does exist for Solaris and HP-UX machines:

    http://www.microsoft.com/unix/ie

                Mark Montague
                LS&A Information Technology
                The University of Michigan
                [email-masked]

---

From: Kenneth Crudup <[email-masked]>
Date: Wed, 20 Mar 2002 10:23:27 -0800 (PST)

> tried inserting a & in the URL viewer command, but that didn't seem to

I have a wrapper script (as opposed to trying to do it all via Pine Config)
that's got an "&" in it, and my URL-viewer command comes right back.

	-Kenny

-- 
Kenneth R. Crudup   Sr. SW Engineer, Scott County Consulting, Washington, D.C.
Home1: PO Box 914         Silver Spring, MD 20910-0914         [email-masked]
Home2: 38010 Village Cmn. #217  Fremont, CA 94536-7525          (510) 745-0101

---

From: Gopi Sundaram <[email-masked]>
Date: Wed, 20 Mar 2002 12:27:18 -0600 (CST)

On Wed, 20 Mar 2002, Allen Ziegenfus wrote:

> I tried inserting a & in the URL viewer command, but that didn't seem
> to work.

If the viewer command takes any cmd-line parameters, then you should
tell Pine where to put the URL; otherwise it will put it at the end,
making it look like "/path/to/cmd & url" which is probably wrong.

What you want is

url-viewers = /path/to/browser _URL_ &

-- 
Gopi Sundaram
[email-masked]
http://www.cse.sc.edu/~gopalan/Pine/

---

From: Ed Arnold <[email-masked]>
Date: Thu, 21 Mar 2002 09:39:00 -0700 (MST)

> P.S. Is this the appropriate forum for these types of questions?

Yes, this has been discussed before.

On *n*x, in my .pinerc I specify "url-viewers=~/bin/ns", and the
"ns" script is:

#!/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=/fs/local/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

---

From: Murphy <[email-masked]>
Date: Thu, 28 Mar 2002 12:24:22 +0100 (MET)

>    http://www.microsoft.com/unix/ie

I know this, but it is not installed in my environment, then I don't
know how to use it from Pine.

Regards,
Murphy