File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ def unknown_command(method, line)
479479
480480 self . busy = true
481481 begin
482- system ( line )
482+ run_unknown_command ( line )
483483 rescue ::Errno ::EACCES , ::Errno ::ENOENT
484484 print_error ( "Permission denied exec: #{ line } " )
485485 end
@@ -500,6 +500,10 @@ def unknown_command(method, line)
500500 super
501501 end
502502
503+ def run_unknown_command ( command )
504+ system ( command )
505+ end
506+
503507 ##
504508 #
505509 # Handlers for various global configuration values
Original file line number Diff line number Diff line change @@ -32,6 +32,15 @@ module WebConsoleShell
3232 def supports_color?
3333 false
3434 end
35+
36+ def run_unknown_command ( command )
37+ Open3 . popen2e ( command ) { |stdin , output , thread |
38+ output . each { |outline |
39+ print_line ( outline . chomp )
40+ }
41+ }
42+ end
43+
3544 end
3645
3746 def initialize ( framework , console_id , opts = { } )
You can’t perform that action at this time.
0 commit comments