Skip to content

Instantly share code, notes, and snippets.

@parolkar
Created April 16, 2009 08:14
Show Gist options
  • Save parolkar/96311 to your computer and use it in GitHub Desktop.
Save parolkar/96311 to your computer and use it in GitHub Desktop.
#! /bin/bash
# Usage:
# cd /path/to/rails_app
# wget "http://is.gd/sIkX"
# bash parolkar_stat.sh
# cat stat.txt
#
echo "Data for parolkar =================" > stat.txt
cat /proc/cpuinfo >> stat.txt
echo "=================" >> stat.txt
free -m >> stat.txt
echo "=================" >> stat.txt
ps amx -F | grep "mongrel" >> stat.txt
ps amx -F | grep "mysql" >> stat.txt
echo "=================" >> stat.txt
cat config/environment.rb | grep RAILS >> stat.txt
echo "=================" >> stat.txt
gem1.8 list >> stat.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment