67 lines · 1.0 KB · Text
RawDownload
.TH EXECNET 4.SH NAMEexecnet \- network interface to program execution.SH SYNOPSIS.B execnet[.B -n.I name][.B netdir].SH DESCRIPTION.I Execnetpresents a network protocol directory(see, for example,.IR ip (3))called.IB netdir / name(default.BR /net/exec )..PPOnce the protocol directory exists, dialing(see.IR dial (2))strings ofthe form.IB name ! cmdwill connect to a newly executed instance of.IR cmd ..SH EXAMPLE.I Execnetcan be used to connect to instances of.IR u9fs (4)running on other hosts:.EX    g% execnet    g% srv -m 'exec!ssh ny start-u9fs' ny /n/ny.EEThis example assumes that the remote command.B start-u9fsexecuted on.B nywill start.I u9fsappropriately.For example, it might be:.EX    ny% cat start-u9fs    #!/bin/sh     u9fs -na none -u $USER -l $HOME/tmp/u9fs.log    ny%.EESee the .IR u9fs (4)man page for more information..SH SOURCE.B /sys/src/cmd/execnet.SH "SEE ALSO.IR dial (2),.IR ip (3),.IR u9fs (4).SH BUGSAlmost certainly:.IR execnethas only been tested as in the example shown.