---
name: "xpce-client"
section: "1"
platform: "linux"
package: "swi-prolog-x"
version: "9.2.9+dfsg-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/xpce-client"
---

# xpce-client(1)

Contact an XPCE server socket

## NAME

xpce-client - Contact an XPCE server socket

## SYNOPSIS

**xpce-client** **socket** \[**-b**\] **\[**-c **command**\]

## DESCRIPTION

xpce-client is a small program to contact an *[xpce(1)](/xpce/1.md)* server socket and feed the xpce process commands.  A generic server that provides the possibility to execute *Prolog goals* is available in the *library(pce\_server).* This server may be started from xpce using the command

**?-** pce\_server(socket).

after which this server may be contacted using:

% xpce-client socket\
 (pce) send(new(P, picture), open).\
 P = @717363\
 (pce) exit\
 %

### Options

- **-b**

  Block until the xpce server closes the connection.  Otherwise *xpce-client* exists as soon as it has send all requests to the server without waiting for response.

- **-c** *command*

  Send *command* as a command to the server.  Without this option, xpce-client will copy standard input to the server socket and copy any output from the socket to standard output.

## SEE ALSO

[swipl(1)](/swipl/1.md)

## COPYING

[xpce-client(1)](/xpce-client/1.md) is not copyrighted.  You may use, copy and modify its sources and/or binaries as you like.

## AUTHOR

Jan Wielemaker, SWI, University of Amsterdam
