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
37 058b0118 2005-01-03 devnull .B writefd
47 058b0118 2005-01-03 devnull .SH DESCRIPTION
49 058b0118 2005-01-03 devnull is a trivial 9P client that can access a single file on a 9P server.
50 058b0118 2005-01-03 devnull It can be useful for manual interaction with a 9P server or for
51 058b0118 2005-01-03 devnull accessing simple 9P services from within shell scripts.
53 058b0118 2005-01-03 devnull The first argument is a command, one of:
56 058b0118 2005-01-03 devnull print the contents of
58 058b0118 2005-01-03 devnull to standard output
61 058b0118 2005-01-03 devnull write data on standard input to
62 d93fca6a 2005-02-11 devnull .IR path ;
65 d93fca6a 2005-02-11 devnull option causes
67 d93fca6a 2005-02-11 devnull to write one line at a time
69 058b0118 2005-01-03 devnull .BR readfd ", " writefd
75 058b0118 2005-01-03 devnull .IR openfd (9p)
76 058b0118 2005-01-03 devnull instead of
77 058b0118 2005-01-03 devnull .IR open ;
78 058b0118 2005-01-03 devnull this masks errors and is mainly useful for debugging
79 058b0118 2005-01-03 devnull the implementation of
80 058b0118 2005-01-03 devnull .I openfd
84 058b0118 2005-01-03 devnull .I stat (9p)
87 058b0118 2005-01-03 devnull and print the result
92 058b0118 2005-01-03 devnull .I address
93 058b0118 2005-01-03 devnull to connect to the 9P server.
96 058b0118 2005-01-03 devnull option is not given,
98 058b0118 2005-01-03 devnull requires the
100 058b0118 2005-01-03 devnull to be of the form
101 058b0118 2005-01-03 devnull .IB service / subpath \fR;
102 058b0118 2005-01-03 devnull it connects to the Unix domain socket
103 058b0118 2005-01-03 devnull .I service
104 058b0118 2005-01-03 devnull in the name space directory
106 058b0118 2005-01-03 devnull .IR intro (4))
107 058b0118 2005-01-03 devnull and then accesses
108 058b0118 2005-01-03 devnull .IR subpath .
109 058b0118 2005-01-03 devnull .SH EXAMPLE
110 058b0118 2005-01-03 devnull To update
111 058b0118 2005-01-03 devnull .IR plumber (4)'s
112 058b0118 2005-01-03 devnull copy of your plumbing rules after editing
113 058b0118 2005-01-03 devnull .BR $HOME/lib/plumbing :
116 058b0118 2005-01-03 devnull cat $HOME/lib/plumbing | 9p write plumb/rules
119 058b0118 2005-01-03 devnull To display the contents of the current
120 058b0118 2005-01-03 devnull .IR acme (4)
124 058b0118 2005-01-03 devnull 9p read acme/$winid/body
126 058b0118 2005-01-03 devnull .SH SOURCE
127 c3674de4 2005-01-11 devnull .B \*9/src/cmd/9p.c
128 058b0118 2005-01-03 devnull .SH SEE ALSO
129 058b0118 2005-01-03 devnull .IR intro (4),
130 058b0118 2005-01-03 devnull .IR intro (9p),
131 058b0118 2005-01-03 devnull .IR 9pclient (3)