On 03/23/2018 12:25 PM, Cecil Ward wrote:
> On Friday, 23 March 2018 at 01:23:56 UTC, Cecil Ward wrote:
>> I am wanting to write a short program (on a ‘server’ you could say)
>> that takes a command, runs it (as on the command line, so an
>> executable with arguments or a shell command) and return
On Friday, 23 March 2018 at 01:23:56 UTC, Cecil Ward wrote:
I am wanting to write a short program (on a ‘server’ you could
say) that takes a command, runs it (as on the command line, so
an executable with arguments or a shell command) and returns a
3-tuple with an int for the return code, plus
On Friday, 23 March 2018 at 07:57:33 UTC, Kagamin wrote:
You can just read the whole request into a buffer and parse it
there.
Agreed.
Or this:
https://github.com/nextcardgame/lighttp/blob/master/examples/chat.d
You can just read the whole request into a buffer and parse it
there.
I am wanting to write a short program (on a ‘server’ you could
say) that takes a command, runs it (as on the command line, so an
executable with arguments or a shell command) and returns a
3-tuple with an int for the return code, plus the textual outputs
that it generates to stdout and stderr.