Blame


1 c8b6342d 2005-01-13 devnull .TH IMPORT 4
2 c8b6342d 2005-01-13 devnull .SH NAME
3 c8b6342d 2005-01-13 devnull import \- import 9P resources from another system
4 c8b6342d 2005-01-13 devnull .SH SYNOPSIS
5 c8b6342d 2005-01-13 devnull .B import
6 c8b6342d 2005-01-13 devnull [
7 c8b6342d 2005-01-13 devnull .B -df
8 c8b6342d 2005-01-13 devnull ]
9 c8b6342d 2005-01-13 devnull [
10 c8b6342d 2005-01-13 devnull .B -n
11 c8b6342d 2005-01-13 devnull .I ns
12 c8b6342d 2005-01-13 devnull ]
13 c8b6342d 2005-01-13 devnull [
14 c8b6342d 2005-01-13 devnull .B -p
15 c8b6342d 2005-01-13 devnull .I prog
16 c8b6342d 2005-01-13 devnull ]
17 c8b6342d 2005-01-13 devnull [
18 c8b6342d 2005-01-13 devnull .B -s
19 c8b6342d 2005-01-13 devnull .I service
20 c8b6342d 2005-01-13 devnull ]
21 c8b6342d 2005-01-13 devnull .I system
22 c8b6342d 2005-01-13 devnull .SH DESCRIPTION
23 c8b6342d 2005-01-13 devnull .I Import
24 c8b6342d 2005-01-13 devnull presents the 9P service
25 c8b6342d 2005-01-13 devnull .I service
26 c8b6342d 2005-01-13 devnull (default
27 c8b6342d 2005-01-13 devnull .BR plumb )
28 c8b6342d 2005-01-13 devnull running on
29 c8b6342d 2005-01-13 devnull .I system
30 c8b6342d 2005-01-13 devnull as a service on the local system,
31 c8b6342d 2005-01-13 devnull in the current name space.
32 c8b6342d 2005-01-13 devnull .PP
33 c8b6342d 2005-01-13 devnull The
34 c8b6342d 2005-01-13 devnull .B -n
35 c8b6342d 2005-01-13 devnull option sets the remote name space directory
36 c8b6342d 2005-01-13 devnull where
37 c8b6342d 2005-01-13 devnull .I import
38 c8b6342d 2005-01-13 devnull should expect to find
39 c8b6342d 2005-01-13 devnull .IR service .
40 c8b6342d 2005-01-13 devnull If it is not specified,
41 c8b6342d 2005-01-13 devnull .I import
42 c8b6342d 2005-01-13 devnull uses name of the local system's name space directory.
43 c8b6342d 2005-01-13 devnull (Since name space directories are conventionally inside
44 c8b6342d 2005-01-13 devnull .BR /tmp ,
45 c8b6342d 2005-01-13 devnull the path have different meanings on the two systems.)
46 c8b6342d 2005-01-13 devnull .PP
47 c8b6342d 2005-01-13 devnull .I Import
48 c8b6342d 2005-01-13 devnull connects to
49 c8b6342d 2005-01-13 devnull .I system
50 c8b6342d 2005-01-13 devnull using
51 c8b6342d 2005-01-13 devnull .IR ssh (1).
52 c8b6342d 2005-01-13 devnull It invokes
53 c8b6342d 2005-01-13 devnull .I import
54 c8b6342d 2005-01-13 devnull on the remote system to carry out the remote
55 c8b6342d 2005-01-13 devnull side of the protocol.
56 c8b6342d 2005-01-13 devnull The
57 c8b6342d 2005-01-13 devnull .B -p
58 c8b6342d 2005-01-13 devnull option specifies the path to
59 c8b6342d 2005-01-13 devnull .I import
60 c8b6342d 2005-01-13 devnull on the remote system, in case it is not in the system search path.
61 c8b6342d 2005-01-13 devnull .PP
62 c8b6342d 2005-01-13 devnull The
63 c8b6342d 2005-01-13 devnull .B -d
64 c8b6342d 2005-01-13 devnull option turns on debugging.
65 c8b6342d 2005-01-13 devnull The
66 c8b6342d 2005-01-13 devnull .B -f
67 c8b6342d 2005-01-13 devnull option keeps
68 c8b6342d 2005-01-13 devnull .I import
69 c8b6342d 2005-01-13 devnull from forking itself into the background, also useful for debugging.
70 c8b6342d 2005-01-13 devnull .SH EXAMPLE
71 c8b6342d 2005-01-13 devnull Suppose you run
72 c8b6342d 2005-01-13 devnull .B sam
73 c8b6342d 2005-01-13 devnull .B -r
74 c8b6342d 2005-01-13 devnull to the CPU server
75 c8b6342d 2005-01-13 devnull .IR anna .
76 c8b6342d 2005-01-13 devnull .I Sam
77 c8b6342d 2005-01-13 devnull wants to talk to a plumber on the local terminal,
78 c8b6342d 2005-01-13 devnull but the file names will refer to files on
79 c8b6342d 2005-01-13 devnull .IR anna .
80 c8b6342d 2005-01-13 devnull .PP
81 c8b6342d 2005-01-13 devnull To fix this problem, create a new name space directory
82 c8b6342d 2005-01-13 devnull and start a new plumber on
83 c8b6342d 2005-01-13 devnull .IR anna :
84 c8b6342d 2005-01-13 devnull .IP
85 c8b6342d 2005-01-13 devnull .EX
86 c8b6342d 2005-01-13 devnull remotens=/tmp/ns.`whoami`.on.`hostname`
87 c8b6342d 2005-01-13 devnull ssh anna mkdir $remotens
88 c8b6342d 2005-01-13 devnull ssh anna NAMESPACE=$remotens plumber
89 c8b6342d 2005-01-13 devnull .EE
90 a192c140 2005-01-16 devnull .LP
91 c8b6342d 2005-01-13 devnull Now import that plumber to the local name space before starting
92 c8b6342d 2005-01-13 devnull .I sam
93 c8b6342d 2005-01-13 devnull and
94 c8b6342d 2005-01-13 devnull .IR 9term :
95 c8b6342d 2005-01-13 devnull .IP
96 c8b6342d 2005-01-13 devnull .EX
97 c8b6342d 2005-01-13 devnull NAMESPACE=/tmp/ns.anna
98 c8b6342d 2005-01-13 devnull mkdir $NAMESPACE
99 c8b6342d 2005-01-13 devnull import -n $remotens -s plumb anna
100 c8b6342d 2005-01-13 devnull sam &
101 c8b6342d 2005-01-13 devnull 9term ssh anna &
102 c8b6342d 2005-01-13 devnull .EE
103 c8b6342d 2005-01-13 devnull .SH SOURCE
104 c8b6342d 2005-01-13 devnull .B \*9/src/cmd/import.c
105 c8b6342d 2005-01-13 devnull .SH SEE ALSO
106 c8b6342d 2005-01-13 devnull .IR 9pserve (4),
107 c8b6342d 2005-01-13 devnull .IR intro (4)