mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
add --listen docs
* doc/ref/scheme-scripts.texi (Invoking Guile): Add --listen documentation.
This commit is contained in:
parent
9322905ce7
commit
f88dae81fe
1 changed files with 22 additions and 0 deletions
|
@ -189,6 +189,28 @@ interactive session. When executing a script with @code{-s} or
|
|||
Do not use the debugging VM engine, even when entering an interactive
|
||||
session.
|
||||
|
||||
@item --listen[=@var{p}]
|
||||
While this program runs, listen on a local port or a path for REPL
|
||||
clients. If @var{p} starts with a number, it is assumed to be a local
|
||||
port on which to listen. If it starts with a forward slash, it is
|
||||
assumed to be a path to a UNIX domain socket on which to listen.
|
||||
|
||||
If @var{p} is not given, the default is local port 37146. If you look
|
||||
at it upside down, it almost spells ``Guile''. If you have netcat
|
||||
installed, you should be able to @kbd{nc localhost 37146} and get a
|
||||
Guile prompt. Alternately you can fire up Emacs and connect to the
|
||||
procedure; see @ref{Using Guile in Emacs} for more details.
|
||||
|
||||
Note that opening a port allows anyone who can connect to that port---in
|
||||
the TCP case, any local user---to do anything Guile can do, as the user
|
||||
that the Guile process is running as. Don't use @option{--listen} on
|
||||
multi-user machines. Of course, if there is no @option{--listen}
|
||||
argument, no port will be opened.
|
||||
|
||||
That said, @code{--listen} is great for interactive debugging and
|
||||
development.
|
||||
|
||||
@vnew{2.0}
|
||||
@item -h@r{, }--help
|
||||
Display help on invoking Guile, and then exit.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue