Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20050831080245.64033.qmail@web86910.mail.ukl.yahoo.com> Date: Wed, 31 Aug 2005 09:02:45 +0100 (BST) From: Antony Baxter Subject: Re: 1.5.18: Problem launching URLs from Pine To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Brian Dessent wrote: > Antony Baxter wrote: > > >> anything to work. At the moment I've set >> >> url-viewers = /home/ant/bin/viewUrl >> >> in my .pinerc where viewUrl is a 1-line script as >> follows: >> >> echo $1 >> /tmp/viewUrl.log >> >> When run from the command line this (obviously) works >> fine. However, Hi there, > If it's a script file it probably needs a shebag as the first line > (#!/bin/sh). Also, make sure it has execute permissions (chmod 755). > > It depends on how pine tries to execute it though. If it uses system() > then the shebang is not necessary, otherwise it probably is. Spent some time on this last night and have now got to the bottom of it. It seems that, in Bash, if I don't explicitly set my SHELL environment variable, % echo $SHELL returns /bin/bash, but stdlib's getenv("SHELL") returns null. Pine uses getenv("SHELL") to figure out how to execute external apps. Explicitly setting SHELL to /bin/bash allows Pine to work. Hope someone else finds this useful! Ant. ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/