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