hi Dave,
On Thu, Feb 15, 2018 at 3:56 AM, David Brendlinger <
davidbrendling...@gmail.com> wrote:
> can someone create an example for me of a webpage that can run a bash
> command ?
>
> I would like a index.html that has a button on it. you hit the button and
> it would do a ls /tmp >>
Hi Dave,
I think what you want is to combine net/http (for the server part) with
os/exec (to invoke bash, though with your example you don't need a shell
and could execute the `ls` command directly). You'd need one or two
handlers; maybe browse this to understand more: