Re: remote execute program

2018-03-23 Thread Ali Çehreli via Digitalmars-d-learn
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

Re: remote execute program

2018-03-23 Thread Cecil Ward via Digitalmars-d-learn
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

Re: remote execute program

2018-03-23 Thread Cecil Ward via Digitalmars-d-learn
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.

Re: remote execute program

2018-03-23 Thread Kagamin via Digitalmars-d-learn
Or this: https://github.com/nextcardgame/lighttp/blob/master/examples/chat.d

Re: remote execute program

2018-03-23 Thread Kagamin via Digitalmars-d-learn
You can just read the whole request into a buffer and parse it there.

remote execute program

2018-03-22 Thread Cecil Ward via Digitalmars-d-learn
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.