SeeView Manual

SeeView Language Elements
HP NonStop SeeView Manual526355-004
5-39
ServerMode
?PROC HandleRequest is called by section ReadReceive to process the request
received. The procedure parameter #request contains the name of a command
interpreter (ci) followed by the command that the server should issue to that command
interpreter. The procedure parses the #request parameter into local string variables
#ciname (FUP) and #cmd (INFO $DATA.TEST.*).
HandleRequest executes a statement to declare a TASK with the name #ciname
contained in #request and then executes a WITH #ciname to set the taskid of the
command interpreter to the local variable citaskid. The procedure then writes the
command contained in #cmd to the citaskid and waits for the command interpreter
to prompt. Once it prompts, the entire response from the command interpreter is
written back to the requestor in one large reply message containing multiple lines of
text delimited with carriage-return characters. See Example 5-19.
Example 5-18. Server Output From the ServerMode Script in Example 5-17
1> PARAM SERVERMODE 3
2> SEEVIEW/NAME $SEEV, IN ASERVER/
Seeview - T6965C30 - (28MAR92) Processing your request
Processing $DATA.SEEVIEW.ASERVER (?SECT READRECEIVE)
15:08:56 $SEEV Received: FUP CREATE $DATA.TEST.A
15:09:02 $SEEV Received: FUP CREATE $DATA.TEST.B
15:09:08 $SEEV Received: FUP CREATE $DATA.TEST.C
15:09:10 $SEEV Received: FUP CREATE $DATA.TEST.D
15:09:14 $SEEV Received: FUP INFO $DATA.TEST.*
Example 5-19. Requestor Reply Received From the Script in Example 5-17
1> SEEDIT MS $SEEV FUP INFO $DATA.TEST.*
INFO $DATA.TEST.*
CODE EOF LAST MODIF OWNER RWEP TYPE REC BLOC
$DATA.TEST
A 0 15:08 66,1 UUUU
B 0 15:09 66,1 UUUU
C 0 15:09 66,1 UUUU
D 0 15:09 66,1 UUUU
-