forked from Qihoo360/phptrace
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
我使用ruby对phptrace进行了封装,封装后执行phptrace -p all命令,每访问8次php文件,才会出现一次输出,每次输出会将8次执行的结果一起输出。请问是什么原因,应该如何解决?
`
require 'open3'
cmd = 'sh'
Open3.popen2e(cmd) do |stdin, stdout_stderr, wait_thread|
Thread.new do
stdout_stderr.each {|l| puts l }
end
stdin.puts 'phptrace -p all'
stdin.close
wait_thread.value
end
`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels