1.5.18: Problem launching URLs from Pine

Antony Baxter antony_baxter@yahoo.co.uk
Tue Aug 30 13:07:00 GMT 2005


Hello,

I've come across a problem with Pine under Cygwin.
I've tried this with 
the stock Cygwin version of Pine (latest available
from Setup: 4.58-1), 
and have also compiled up the latest version (4.63)
and had the same 
result. I've also tried version 4.60 on Solaris and
could not reproduce 
the problem.

I'm trying to use the "url-viewers" setting in my
.pinerc to launch an 
external app to handle urls supplied in emails.
However, I cannot get 
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, 
running it from Pine by hitting Enter on a URL and
answering 'yes' to 
the 'View selected URL "http:...."', Pine reports
"VIEWER Command 
Completed", but nothing is added to the log file. On
Solaris this works 
fine; the log is updated.

Running Pine with -d 9  (highest debug level) I get
the output below 
(only relevant bits shown).

I presume the problem is somewhere in the
open_system_pipe method in 
pine/osdep/os-cyg.c, but my C and/or Cygwin internals
knowledge is 
pretty limited.

If anyone's get time to take a look, it'd be much
appreciated.

Thanks,

Ant.

===

Relevant "pine -d 9" output:

  12:46:02.873219
  Want_to read: y (121)

  12:46:02.873219
  resume_busy_alarm

  12:46:02.873219
  Opening pipe: "/home/ant/bin/viewUrl
'http://www.google.com'" (UT)

  12:46:02.873219
  about to end_tty_driver

  12:46:02.873219
  end_screen called

  12:46:02.915219
  PID: 2800, COMMAND: /home/ant/bin/viewUrl
'http://www.google.com'

  12:46:02.915219
  new mail called (force=0 VeryBad flags=0x0)

  12:46:02.916219
  INBOX: force=0 interval=150 exp_reap_to=300
adj_idle_to=1650

  12:46:02.916219
  since_last_ping=4 since_last_reap=5

  12:46:02.916219
  ******** new mail returning -1  ********

  12:46:02.918219
  fix_windsize()

  12:46:02.919219
  new win size -----<26 170>------
	
  12:46:02.919219
  Closed pipe: PID=2800: status=255

  12:46:02.919219
  q_status_message(VIEWER command completed)





		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050830/70a49cb7/attachment.ksh>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list