Created
November 29, 2011 16:53
-
-
Save amaia/1405510 to your computer and use it in GitHub Desktop.
Check config files for occupied sphinx ports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e "require 'yaml'; Dir.glob('/home/*/app/current/config/sphinx.yml').each{|yml| puts YAML.load_file(yml)['production']['port']}" | sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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