lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV passing a url to a program


From: Jose Vilmar Estacio de Souza
Subject: Re: LYNX-DEV passing a url to a program
Date: Wed, 17 Sep 1997 20:26:15 -0300

The point in my question is that I wouldn't like to download the file to my 
computer. The idea was to pass the URL to the command so that it could access 
the file in the remote site. This is because I don't need the entire file but 
only information contained in  its begin.

On Wed, Sep 17, 1997 at 07:29:55AM -0400
   Larry W. Virden, x2487 (address@hidden) Wrote:
> Jim Dennis <address@hidden> writes:
> 
> >     So, try 'man mailcap'
> 
> This brings up a good point - perhaps lynx should include, in the 
> documentation
> that is provided, man pages for things like mailcap, mimetypes, etc.  Right
> now, the user would typically find that the above command fails on most
> platforms other than linux.
> 
> > > I would like to press a key in lynx to invoke  the rpm command and I 
> > > would like that lynx pass the current URL as a parameter to the command.
> 
> Currently I don't think that lynx is designed to pass the real URL to an
> external command.  However, there are several options.  Using Jim's
> suggestion of setting up a mailcap type for rpm, what you would do is 
> update your (or the site's) mimetypes file (mine is called $HOME/.mime.types)
> to do something like:
> 
> application/rpm               rpm
> 
> Then, in the user or site's mailcap file (mine is called $HOME/.mailcap)
> you would want something that looks like
> 
> application/rpm; rpm flag %s
> 
> Then, if you select the package (pressing return or doing a G to the
> link number, etc.) lynx would download the package into /tmp and run
> rpm on the copy of the file in /tmp .
> 
> Another similar option would be to set up a Download or Print option
> in lynx.cfg or userdefs.h to run rpm on the /tmp copy of the file.
> 
> These are the most likely ways right now to do things.
> 
> -- 
> Larry W. Virden                 INET: address@hidden
> <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
> Unless explicitly stated to the contrary, nothing in this posting should 
> be construed as representing my employer's opinions.
> ;
> ; To UNSUBSCRIBE:  Send a mail message to address@hidden
> ;                  with "unsubscribe lynx-dev" (without the
> ;                  quotation marks) on a line by itself.
> ;

-- 
[]S Jose Vilmar Estacio de Souza <address@hidden>
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]