Skip to content

Instantly share code, notes, and snippets.

@amaia
Created November 29, 2011 16:53
Show Gist options
  • Save amaia/1405510 to your computer and use it in GitHub Desktop.
Save amaia/1405510 to your computer and use it in GitHub Desktop.
Check config files for occupied sphinx ports
ruby -e "require 'yaml'; Dir.glob('/home/*/app/current/config/sphinx.yml').each{|yml| puts YAML.load_file(yml)['production']['port']}" | sort
ruby -e "require 'yaml'; Dir.glob('/home/*/app/current/config/sphinx.yml').each{|yml| puts \"#{YAML.load_file(yml)['production']['port']} #{yml} \" }" | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment