DCE Application Programming Guide

Sample Application Listings
HP NonStop DCE Application Programming Guide429551-003
A-24
The README File
EXECUTION
Create a directory "/.:/applications" if it does not already exist, with
the commands:
dcecp
directory create /.:/applications
The installation program must be run on each system on which a server
will run. To run the installation program first dce_login to an account
which can write into /.:/applications.
Then type:
infpls_i.out -i
To run the server type:
infpls_s.out
To run the V1.1 server, first configure the server:
dcecp
server create infpls \
-program your-directory/infpls_s_v11.out \
-dir your-directory \
-starton explicit \
-services {{annotation {Information Please Program}}\
{interface {00602161-7c3f-1c90-b0ae-0000c07c3610 1.0}}}
Then start the server:
dcecp
server start infpls
To stop the server:
dcecp
server start infpls -method soft
To run the client, set the environment variable
RPC_DEFAULT_ENTRY
to
/.:/applications/info_server_group
for example, using the C-shell type:
setenv RPC_DEFAULT_ENTRY /.:/applications/info_server_group
Using the Korn shell type:
export RPC_DEFAULT_ENTRY=/.:/applications/info_server_group
then type:
infpls_c.out
For each server running, the client will print out a report like this:
Directory Service Name = /.:/applications/info_server_mynode
System Name = System V
Node Name = mynode
Release = 4
Version = 3.2
Machine Type = I386
For a NonStop server, it will print a report like this:
Directory Service Name = /.../applications/info_server_kt22
System Name = NONSTOP_KERNEL
Node Name = kt22
Release = G06
Version = G06.00
Machine Type = NSR-N
NOTE: If using this example as the basis for a new application, be sure
to change the Interface UUID in the IDL file.
Figure A-13. The README File in a Release 1.1 Port (page 2 of 2)