3 058b0118 2005-01-03 devnull 9p \- read and write files on a 9P server
4 058b0118 2005-01-03 devnull .SH SYNOPSIS
18 058b0118 2005-01-03 devnull .B readfd
34 058b0118 2005-01-03 devnull .B writefd
44 058b0118 2005-01-03 devnull .SH DESCRIPTION
46 058b0118 2005-01-03 devnull is a trivial 9P client that can access a single file on a 9P server.
47 058b0118 2005-01-03 devnull It can be useful for manual interaction with a 9P server or for
48 058b0118 2005-01-03 devnull accessing simple 9P services from within shell scripts.
50 058b0118 2005-01-03 devnull The first argument is a command, one of:
53 058b0118 2005-01-03 devnull print the contents of
55 058b0118 2005-01-03 devnull to standard output
58 058b0118 2005-01-03 devnull write data on standard input to
61 058b0118 2005-01-03 devnull .BR readfd ", " writefd
67 058b0118 2005-01-03 devnull .IR openfd (9p)
68 058b0118 2005-01-03 devnull instead of
69 058b0118 2005-01-03 devnull .IR open ;
70 058b0118 2005-01-03 devnull this masks errors and is mainly useful for debugging
71 058b0118 2005-01-03 devnull the implementation of
72 058b0118 2005-01-03 devnull .I openfd
76 058b0118 2005-01-03 devnull .I stat (9p)
79 058b0118 2005-01-03 devnull and print the result
84 058b0118 2005-01-03 devnull .I address
85 058b0118 2005-01-03 devnull to connect to the 9P server.
88 058b0118 2005-01-03 devnull option is not given,
90 058b0118 2005-01-03 devnull requires the
92 058b0118 2005-01-03 devnull to be of the form
93 058b0118 2005-01-03 devnull .IB service / subpath \fR;
94 058b0118 2005-01-03 devnull it connects to the Unix domain socket
95 058b0118 2005-01-03 devnull .I service
96 058b0118 2005-01-03 devnull in the name space directory
98 058b0118 2005-01-03 devnull .IR intro (4))
99 058b0118 2005-01-03 devnull and then accesses
100 058b0118 2005-01-03 devnull .IR subpath .
101 058b0118 2005-01-03 devnull .SH EXAMPLE
102 058b0118 2005-01-03 devnull To update
103 058b0118 2005-01-03 devnull .IR plumber (4)'s
104 058b0118 2005-01-03 devnull copy of your plumbing rules after editing
105 058b0118 2005-01-03 devnull .BR $HOME/lib/plumbing :
108 058b0118 2005-01-03 devnull cat $HOME/lib/plumbing | 9p write plumb/rules
111 058b0118 2005-01-03 devnull To display the contents of the current
112 058b0118 2005-01-03 devnull .IR acme (4)
113 058b0118 2005-01-03 devnull window (specified by the environment variable
114 058b0118 2005-01-03 devnull .BR $winid )
115 058b0118 2005-01-03 devnull on standard output:
118 058b0118 2005-01-03 devnull 9p read acme/$winid/body
120 058b0118 2005-01-03 devnull .SH SOURCE
121 058b0118 2005-01-03 devnull .B /usr/local/plan9/src/cmd/9p.c
122 058b0118 2005-01-03 devnull .SH SEE ALSO
123 058b0118 2005-01-03 devnull .IR intro (4),
124 058b0118 2005-01-03 devnull .IR intro (9p),
125 058b0118 2005-01-03 devnull .IR 9pclient (3)