Skip to content

Instantly share code, notes, and snippets.

@timurb
Created April 4, 2011 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timurb/901399 to your computer and use it in GitHub Desktop.
Save timurb/901399 to your computer and use it in GitHub Desktop.
watch the users accessing our server
date ; tail -f access.log | ruby -a -n -e 'a||=[]; unless a.include?($F[-1]) then a.push $F[-1]; puts "#{Time.now} #{a.uniq.sort.inspect}"; end'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment