Skip to content

Instantly share code, notes, and snippets.

@AndrewVos
Created November 19, 2011 00:56
Show Gist options
  • Save AndrewVos/1378239 to your computer and use it in GitHub Desktop.
Save AndrewVos/1378239 to your computer and use it in GitHub Desktop.
File.open("hello", "w") do |file|
File.open("goodbye", "w") do |file|
puts `lsof -p #{Process.pid}`
puts `lsof -p #{Process.pid} | wc -l`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment