From b33e781f4d7e6d108a496b16082f39efe7cdcb49 Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Sat, 18 Mar 2017 21:41:53 +0100 Subject: [PATCH] Added command executor, issue #30 --- changelog.txt | 3 ++ configurator.py | 97 ++++++++++++++++++++++++++++++++++++++++++++++++- dev.html | 48 +++++++++++++++++++++++- 3 files changed, 144 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 02361ce..7243695 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +Version 0.1.6 (2017-03-nn) +- Executing commands on remote machine now possbile (Issue #30) + Version 0.1.5 (2017-02-28) - UI improvements - Added git init diff --git a/configurator.py b/configurator.py index 6f1544e..1514fb2 100755 --- a/configurator.py +++ b/configurator.py @@ -13,6 +13,8 @@ import base64 import ipaddress import signal import cgi +import shlex +import subprocess from string import Template from http.server import BaseHTTPRequestHandler, HTTPServer import urllib.request @@ -566,19 +568,23 @@ INDEX = Template(r"""