|
Environment | PQLServer |
From the client point of view processing is as follows:
program compute client = serlog (0,'TONYDELL:4000','') write client compute x = sersend (client,'PROGRAM') compute x = sersend (client,'WRITE "HELLO WORLD"') compute x = sersend (client,'END PROGRAM') compute rc = serexec (client,1) write 'rc = ' rc compute olines = serlines(client) write 'lines ' olines for i=1,olines . compute line = serget (client,0) . write line rof compute client = serlog (client,'TONYDELL:4000','') end program
SERADMIN
Various server administration capabilities (returning numeric values)
SERADMIS
Various server administration capabilities (returning string values)
SEREXEC
Instructs server to execute previously sent commands
SERGET
Gets a line of output from server
SERLINES
Asks server how many lines of output are left
SERLOG
Logs on to the server
SERSEND
Sends a string to the server
SERSENDB
Sends a buffer to the server
SERTEST
Asks server if execution has completed
SERNOOUT
Suppresses server output
SERWRITE
Writes a line of output from server
CLEAR SERVER NOOUTPUT SET SERVER NOOUTPUTThese can be used anywhere in the command stream to control selectively what output is made available for retrieval by the client. SET means that any output directed to standard output is thrown away. If this command is within a PQL program, it affects any compilation listing. Use the
SERNOOUT(n)
function for execution time control.
PQLServer.exe
. This starts the server at the default port of 4000 and, in a text window, reports the current IP address. There are a small number of command line options:
PQLServer.EXEoptions
SERV = nnnn
Specifies a non-standard port that must be an even number - 4000 is standard.PASSWORD = NAME
Specifies a password that allows remote user to administer the server.LOG
Specifies that transmissions are logged to sirserver.log
.UPASS
Specifies that only users supplying the password given by PASSWORD=...
can log on.
help
Lists these commands.exit
Stops the server immediately.nologon
Stops the server when all clients have logged off. Does not allow any new logins.logon
Reverses a previous nologon and allows normal processing.list
Lists various statistics and the attached clients.kill n
Stops the specified client connection.