blob: cb0ad0b4537e1ca34b53e0058e483135fde0d86f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
<head>
<title>web(1) - Plan 9 from User Space</title>
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
</head>
<body bgcolor=#ffffff>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr height=10><td>
<tr><td width=20><td>
<tr><td width=20><td><b>WEB(1)</b><td align=right><b>WEB(1)</b>
<tr><td width=20><td colspan=2>
<br>
<p><font size=+1><b>NAME </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
web, wmail – handle web page, mail message for plumber<br>
</table>
<p><font size=+1><b>SYNOPSIS </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<tt><font size=+1>web</font></tt> <i>url</i> ...<br>
<tt><font size=+1>wmail</font></tt> <i>address<br>
</i>
</table>
<p><font size=+1><b>DESCRIPTION </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<i>Web</i> opens each of the named <i>urls</i> in a new web browser window.
Any of the <i>urls</i> may be relative paths to files in the file system;
they will be translated into <tt><font size=+1>file://</font></tt> URLs before being passed
to the web browser.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
<i>Web</i> uses the web browser’s <tt><font size=+1>−remote</font></tt> option command-line option,
which requires an instance of the web browser to be already running.
The choice of browser is determined by the <tt><font size=+1>$BROWSER</font></tt> environment
variable, which should be the name of the executable for your
choice of web browser. The default is
<tt><font size=+1>firefox</font></tt>. Since the various browsers all use different syntaxes
in their <tt><font size=+1>−remote</font></tt> options, the executable name is inspected to
determine the type of browser. The supported browsers are Opera,
Mozilla Firefox, Mozilla Firebird, and Mozilla. When possible,
<i>web</i> opens each URL in a new tab rather than a new window.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
When run under Mac OS X, <tt><font size=+1>$BROWSER</font></tt> should be set to the string
<tt><font size=+1>safari</font></tt> or <tt><font size=+1>firefox</font></tt>. <i>Web</i> uses AppleScript to talk to the browser.
If <tt><font size=+1>$BROWSER</font></tt> is not set, <i>web</i> looks for Firefox in <tt><font size=+1>/Applications/Firefox.app</font></tt>
and uses it if found; otherwise it uses Safari.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
<i>Wmail</i> starts the composition of a new mail message to <i>address</i>.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
The choice of mailer is determined by the <tt><font size=+1>$MAILER</font></tt> environment
variable. The supported mailers are:<br>
<tt><font size=+1>browser<br>
</font></tt>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
invoke the mailer via a <tt><font size=+1>mailto://</font></tt> URL passed to <i>web
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
</i>
</table>
<i>Web</i> and <i>wmail</i> are invoked as start commands in the <a href="../man4/plumber.html"><i>plumber</i>(4)</a>’s
rules for opening web pages and writing mail messages.<br>
</table>
<p><font size=+1><b>FILES </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<tt><font size=+1>/usr/local/plan9/plumb/basic<br>
</font></tt>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
plumbing rules using <i>web</i> and <i>wmail<br>
</i>
</table>
</table>
<p><font size=+1><b>SOURCE </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<tt><font size=+1>/usr/local/plan9/bin<br>
</font></tt>
</table>
<p><font size=+1><b>SEE ALSO </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<a href="../man4/plumber.html"><i>plumber</i>(4)</a><br>
</table>
<td width=20>
<tr height=20><td>
</table>
<!-- TRAILER -->
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr height=15><td width=10><td><td width=10>
<tr><td><td>
<center>
<a href="../../"><img src="../../dist/spaceglenda100.png" alt="Space Glenda" border=1></a>
</center>
</table>
<!-- TRAILER -->
</body></html>
|