xref: /plan9/sys/man/4/execnet (revision 9a747e4fd48b9f4522c70c07e8f882a15030f964)
EXECNET 4
NAME
execnet - network interface to program execution
SYNOPSIS
execnet [ -n name ] [ netdir ]
DESCRIPTION
Execnet presents a network protocol directory (see, for example, ip (3)) called netdir / name (default /net/exec ).

Once the protocol directory exists, dialing (see dial (2)) strings of the form name ! cmd will connect to a newly executed instance of cmd .

EXAMPLE
Execnet can be used to connect to instances of u9fs (4) running on other hosts: .EX g% execnet g% srv -m 'exec!ssh ny start-u9fs' ny /n/ny This example assumes that the remote command start-u9fs executed on ny will start u9fs appropriately. For example, it might be: .EX ny% cat start-u9fs #!/bin/sh u9fs -na none -u $USER -l $HOME/tmp/u9fs.log ny% See the u9fs (4) man page for more information.
SOURCE
/sys/src/cmd/execnet
"SEE ALSO
dial (2), ip (3), u9fs (4)
BUGS
Almost certainly: execnet has only been tested as in the example shown.