Update app.py
Browse files
app.py
CHANGED
|
@@ -70,9 +70,9 @@ def execute_command_async(command):
|
|
| 70 |
stdout_thread.start()
|
| 71 |
stderr_thread.start()
|
| 72 |
|
| 73 |
-
time.sleep(
|
| 74 |
|
| 75 |
-
return ''.join(output_lines) if output_lines else "Command is running in background. No output in first
|
| 76 |
|
| 77 |
except Exception as e:
|
| 78 |
return f"Error: {str(e)}"
|
|
|
|
| 70 |
stdout_thread.start()
|
| 71 |
stderr_thread.start()
|
| 72 |
|
| 73 |
+
time.sleep(5)
|
| 74 |
|
| 75 |
+
return ''.join(output_lines) if output_lines else "Command is running in background. No output in first 5 seconds."
|
| 76 |
|
| 77 |
except Exception as e:
|
| 78 |
return f"Error: {str(e)}"
|