11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Legacy Commands and Functions$ZUTIL(67,15) (legacy function)Returns the IP address of a client application.$ZUTIL(67,15,pid)$ZU(67,15,pid)ParameterspidThe process ID number of the <strong>Caché</strong> client application.DescriptionThis page describes the legacy function $ZUTIL(67,15), which has been superseded by theSYS.Process class methods. (Refer to the <strong>Caché</strong> Class <strong>Reference</strong> for further details.)$ZUTIL(67,15) is described here for compatibility with legacy applications.$ZUTIL(67,15,pid) returns the IP address in dotted decimal format. An IP address consistsof four decimal numbers, separated by dots. For example, the IP address of the local host is127.0.0.1. If the pid does not specify a client application, $ZUTIL(67,15,pid) returns the nullstring.On pre-5.1 versions of <strong>Caché</strong>, the client applications include <strong>Caché</strong> SQL Manager, <strong>Caché</strong>Control Panel, <strong>Caché</strong> Studio, <strong>Caché</strong> Explorer, and <strong>Caché</strong> Configuration Manager. All of these<strong>Caché</strong> client applications appear on the <strong>Caché</strong> Control Panel as routine name %CDSrv0. Thisis also the routine name returned by $ZUTIL(67,5,pid). To determine which client applicationis running as %CDSrv0, invoke $ZUTIL(67,13,pid) to return the name of the executablefile. You can, of course, create your own client applications.The <strong>Caché</strong> Terminal (routine name “shell”) and <strong>Caché</strong> <strong>Documentation</strong> are not client applications.ParameterspidA process ID number. The process ID of the current process is contained in the $JOB specialvariable. The System Management Portal provides a Processes option, which list the pids ofall running processes. If you specify a non-existent process, $ZUTIL(67,15) returns a valueof zero.786 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!