diff --git a/__init__.py b/__init__.py index 2bd6a29..fa4b04e 100644 --- a/__init__.py +++ b/__init__.py @@ -32,4 +32,4 @@ def cm(cmd): c=cmds[cmd] return run_cmd(c) else: - return render_template("index.html", out="Command not found"), 404 + return render_template("index.html", out="Command not found",keys=keys, title=cfg.title.decode("utf8")), 404 diff --git a/cmds.cfg b/cmds.cfg new file mode 100644 index 0000000..56242e6 --- /dev/null +++ b/cmds.cfg @@ -0,0 +1,2 @@ +"ls": ["ls", "-lha"], +"syslog":["tail", "-n 200", "/var/log/syslog"]