Next: , Previous: , Up: The Machine-Interface   [Contents][Index]


20.2 Running poke in MI mode

The following poke command-line options are relevant to the machine-interface.

--mi

Run poke in Machine-Interface mode.

--mi-socket=port

Use a network TCP socket to communicate with the client. port is the port to use, or zero. If zero, then poke chooses a port on its own. In both cases, poke prints the port used when it starts.

If not using network sockets, poke starts talking MI immediately using the standard input and standard output:

$ poke --mi
^@^@^@G{"poke_mi":0,"type":2,"data":{"type":0,"args":{"version":"0.1-beta"}}}

When using sockets, poke prints the number of the socket where it is listening for requests in the standard output:

$ poke --mi --mi-socket=0
1234