1 c8b6342d 2005-01-13 devnull .TH IMPORT 4
3 c8b6342d 2005-01-13 devnull import \- import 9P resources from another system
4 c8b6342d 2005-01-13 devnull .SH SYNOPSIS
19 c8b6342d 2005-01-13 devnull .I service
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
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.
35 c8b6342d 2005-01-13 devnull option sets the remote name space directory
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.)
47 c8b6342d 2005-01-13 devnull .I Import
48 c8b6342d 2005-01-13 devnull connects to
49 c8b6342d 2005-01-13 devnull .I system
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.
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.
64 c8b6342d 2005-01-13 devnull option turns on debugging.
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
74 c8b6342d 2005-01-13 devnull to the CPU server
75 c8b6342d 2005-01-13 devnull .IR anna .
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 .
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 :
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
91 c8b6342d 2005-01-13 devnull Now import that plumber to the local name space before starting
94 c8b6342d 2005-01-13 devnull .IR 9term :
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
101 c8b6342d 2005-01-13 devnull 9term ssh anna &
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)