#1 2018-01-24 09:25:27

dubst3pp4
Member
Registered: 2018-01-10
Posts: 7

TSQLHttpServer as Linux command line process

Hello,

I want to start a TSQLHttpServer on the Linux command line. The server should simply listen to requests of a client - the same as in example 04, but just as plain console program instead of a GUI application.
I could simply start the server and then loop forever until a key is pressed to quit the application. But for the user-experience, I would like to print all requests that are sent to the server in the console. Is this somehow possible?

I have no experience with the TSQLHttpServer, so any advice would be welcome! :-)

Btw, I'm using FPC and Lazarus with mORMot...

Offline

#2 2018-01-24 14:43:03

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: TSQLHttpServer as Linux command line process

You can simply redirect the log to the console, I guess.

The "daemon" modes of mORMotService.pas has such an interactive process command line switch (/console or /verbose).

Offline

Board footer

Powered by FluxBB