blob: e0eca5cb86ebbda9fdcb4cfecac26756c251048a (
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
|
<head>
<title>import(4) - 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>IMPORT(4)</b><td align=right><b>IMPORT(4)</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>
import – import 9P resources from another system<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>import</font></tt> [ <tt><font size=+1>−df</font></tt> ] [ <tt><font size=+1>−n</font></tt> <i>ns</i> ] [ <tt><font size=+1>−p</font></tt> <i>prog</i> ] [ <tt><font size=+1>−s</font></tt> <i>service</i> ] <i>system<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>Import</i> presents the 9P service <i>service</i> (default <tt><font size=+1>plumb</font></tt>) running
on <i>system</i> as a service on the local system, in the current name
space.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
The <tt><font size=+1>−n</font></tt> option sets the remote name space directory where <i>import</i>
should expect to find <i>service</i>. If it is not specified, <i>import</i>
uses name of the local system’s name space directory. (Since name
space directories are conventionally inside <tt><font size=+1>/tmp</font></tt>, the path have
different meanings on the two systems.)
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
<i>Import</i> connects to <i>system</i> using <a href="../man1/ssh.html"><i>ssh</i>(1)</a>. It invokes <i>import</i> on the
remote system to carry out the remote side of the protocol. The
<tt><font size=+1>−p</font></tt> option specifies the path to <i>import</i> on the remote system, in
case it is not in the system search path.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
The <tt><font size=+1>−d</font></tt> option turns on debugging. The <tt><font size=+1>−f</font></tt> option keeps <i>import</i> from
forking itself into the background, also useful for debugging.<br>
</table>
<p><font size=+1><b>EXAMPLE </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
Suppose you run <tt><font size=+1>sam −r</font></tt> to the CPU server <i>anna</i>. <i>Sam</i> wants to talk
to a plumber on the local terminal, but the file names will refer
to files on <i>anna</i>.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
To fix this problem, create a new name space directory and start
a new plumber on <i>anna</i>:<br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<tt><font size=+1>remotens=/tmp/ns.`whoami`.on.`hostname`<br>
ssh anna mkdir $remotens<br>
ssh anna NAMESPACE=$remotens plumber<br>
</font></tt>Now import that plumber to the local name space before starting
<i>sam</i> and <i>9term</i>:<br>
<tt><font size=+1>NAMESPACE=/tmp/ns.anna<br>
mkdir $NAMESPACE<br>
import −n $remotens −s plumb anna<br>
sam &<br>
9term ssh anna &<br>
</font></tt>
</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/src/cmd/import.c<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/9pserve.html"><i>9pserve</i>(4)</a>, <a href="../man4/intro.html"><i>intro</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>
|