Skip to content

Instantly share code, notes, and snippets.

@fukajun
Created April 15, 2021 02:56
Show Gist options
  • Save fukajun/bd53d2d9508fae44412023c64e87fd12 to your computer and use it in GitHub Desktop.
Save fukajun/bd53d2d9508fae44412023c64e87fd12 to your computer and use it in GitHub Desktop.
IO.popen('log stream --process VDCAssistant') do |io|
while (line = io.gets) do
puts(line) if line.to_s =~ /kCamera/
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment