Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2013

URL: http://cxc.harvard.edu/chips/ahelp/get_server_id.html
AHELP for CIAO 4.9 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

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2017. All rights reserved.