Spaces:
Paused
Paused
BinaryONe
commited on
Commit
·
7c5cf76
1
Parent(s):
811b3df
Changes
Browse files- WebSSH/AppHandler.py +1 -0
WebSSH/AppHandler.py
CHANGED
|
@@ -17,6 +17,7 @@ class AppHandler(tornado.web.RequestHandler):
|
|
| 17 |
def run_commands(self):
|
| 18 |
data = json.loads(self.request.body)
|
| 19 |
command = data.get("command")
|
|
|
|
| 20 |
if command:
|
| 21 |
try:
|
| 22 |
result = subprocess.run(command, shell=True, capture_output=True, text=True)
|
|
|
|
| 17 |
def run_commands(self):
|
| 18 |
data = json.loads(self.request.body)
|
| 19 |
command = data.get("command")
|
| 20 |
+
print(f"Command: {command}")
|
| 21 |
if command:
|
| 22 |
try:
|
| 23 |
result = subprocess.run(command, shell=True, capture_output=True, text=True)
|