Method of interaction

As a command

When calling mql(1) as a command, you can either pass the input on a file or on stdin. The output is given on stdout.

You can capture the output by redirecting it to a file (e.g., append "> /tmp/x13wd93pq" to the command line). Alternatively, set up a pipe between your application and the mql(1) program. See your system manual pages for how to do this.

See the mql(1) man-page for details of command-line options and command-line syntax.

As a daemon

When connecting as a daemon, you must open a TCP/IP stream connecting to the host and port on which you have configured xinetd/inetd to listen for MQL input. Issue your command(s) by writing to the stream and listen on the TCP/IP stream for the answer. Use the QUIT statement to close down the connection.


Previous:Via mql(1)
Up:Via mql(1)
Next:Output formats