]> git.lizzy.rs Git - plan9front.git/blob - sys/man/4/execnet
nusb manpages
[plan9front.git] / sys / man / 4 / execnet
1 .TH EXECNET 4
2 .SH NAME
3 execnet \- network interface to program execution
4 .SH SYNOPSIS
5 .B execnet
6 [
7 .B -n
8 .I name
9 ]
10 [
11 .B netdir
12 ]
13 .SH DESCRIPTION
14 .I Execnet
15 presents a network protocol directory
16 (see, for example,
17 .IR ip (3))
18 called
19 .IB netdir / name
20 (default
21 .BR /net/exec ).
22 .PP
23 Once the protocol directory exists, dialing
24 (see
25 .IR dial (2))
26 strings of
27 the form
28 .IB name ! cmd
29 will connect to a newly executed instance of
30 .IR cmd .
31 .SH EXAMPLE
32 .I Execnet
33 can be used to connect to instances of
34 .IR u9fs (4)
35 running on other hosts:
36 .EX
37     g% execnet
38     g% srv -m 'exec!ssh ny start-u9fs' ny /n/ny
39 .EE
40 This example assumes that the remote command
41 .B start-u9fs
42 executed on
43 .B ny
44 will start
45 .I u9fs
46 appropriately.
47 For example, it might be:
48 .EX
49     ny% cat start-u9fs
50     #!/bin/sh
51
52     u9fs -na none -u $USER -l $HOME/tmp/u9fs.log
53     ny%
54 .EE
55 See the 
56 .IR u9fs (4)
57 man page for more information.
58 .SH SOURCE
59 .B /sys/src/cmd/execnet
60 .SH "SEE ALSO
61 .IR dial (2),
62 .IR ip (3),
63 .IR u9fs (4)
64 .SH BUGS
65 Almost certainly:
66 .IR execnet
67 has only been tested as in the example shown.