nyan102 commited on
Commit
be5b22d
·
verified ·
1 Parent(s): 3cbea6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,9 +70,9 @@ def execute_command_async(command):
70
  stdout_thread.start()
71
  stderr_thread.start()
72
 
73
- time.sleep(36000)
74
 
75
- return ''.join(output_lines) if output_lines else "Command is running in background. No output in first 36000 seconds."
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)}"