Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/chips/ahelp/get_server_id.html
AHELP for CIAO 4.11 ChIPS v1

get_server_id

Context: server

Synopsis

Retrieves the id of the ChIPS server to which the client is connected.

Syntax

get_server_id()

Description

The get_server_id command allows the user to retrieve the id of the ChIPS server to which the client is connected. This is useful to know when connecting to the same server from several clients (e.g. the ChIPS GUI, multiple xterms, or an xterm and an application such as prism).


Example

chips> get_server_id()
"ChipsServer_6979_1"

The server id for this client is "ChipsServer_6979_1".


Behavior when run with no server

If the client is not connected to any server - either because no server has yet been started or disconnect() has been called - then a new server will be started and the id of this server will be returned. This routine can therefore not be used to determine whether a client is connected to a server or not.

This behavior may be changed in a future release.


Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

See Also

server
check_server_exists, connect, create_server, disconnect, get_server_cwd, list_servers, lock, unlock