"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.6.2/doc/url_handler.1" (23 Aug 2021, 7170 Bytes) of package /linux/misc/tin-2.6.2.tar.xz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last Fossies "Diffs" side-by-side code changes report for "url_handler.1": 2.4.4_vs_2.4.5.

url_handler.pl

NAME
SYNOPSIS
DESCRIPTION
ENVIRONMENT
SECURITY
AUTHOR
SEE ALSO

NAME

url_handler.pl − Spawn appropriate viewer for a given URL

SYNOPSIS

url_handler.pl URL

DESCRIPTION

url_handler.pl takes an URL as argument and spawns the first executable viewer found in either $BROWSER_ SCHEME or $BROWSER.

ENVIRONMENT

$BROWSER_ SCHEME

The user’s preferred utility to browse URLs of type SCHEME . May actually consist of a sequence of colon-separated browser commands to be tried in order until one succeeds. If a command part contains %s, the URL is substituted there, otherwise the browser command is simply called with the URL as its last argument. is replaced by a single percent sign (%), and %c is replaced by a colon (:). Examples:
$BROWSER_FTP="wget:ncftp"
$BROWSER_GOPHER="lynx:links"
$BROWSER_MAILTO="mutt:pine −url"
$BROWSER_NEWS="lynx"
$BROWSER_NNTP="lynx"
$BROWSER

The user’s preferred utility to browse URLs for which there is no special viewer defined via $BROWSER_ SCHEME . Again it may actually consist of a sequence of colon-separated browser commands to be tried in order until one succeeds. If a command part contains %s, the URL is substituted there, otherwise the browser command is simply called with the URL as its last argument. is replaced by a single percent sign (%), and %c is replaced by a colon (:). Examples:
$BROWSER="firefox −a firefox −remote
openURL\(%s\):opera:konqueror:links2 −g:lynx:w3m"

SECURITY

url_handler.pl was designed to work together with tin(1) which only issues shell escaped absolute URLs thus url_handler.pl does not try hard to shell escape its input nor does it convert relative URLs into absolute ones! If you use url_handler.pl from other applications be sure to at least shell escape its input!

AUTHOR

Urs Janssen <urs@tin.org>

SEE ALSO

<http://www.catb.org/~esr/BROWSER/> <http://www.dwheeler.com/browse/secure_browser.html>