Created
October 27, 2011 15:57
-
-
Save amackworth/1319968 to your computer and use it in GitHub Desktop.
A simple little check-in to make sure a *-nix computer has all your basic needs.
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
{ sum += $4 } | |
END { mb = sum / 1024 | |
gb = mb / 1024 | |
printf \"%.0f MB (%.2fGB) of available disk space\n\", mb, gb | |
} | |
EOF |
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
df -k / | awk -f doctor.awk | |
echo "You are: $(whoami)" | |
echo "Right now it's: $(date)" | |
echo | |
if [ ruby ] | |
then | |
echo "Ruby is installed" | |
else | |
echo "Ruby is not installed" | |
fi | |
if [ python ] | |
then | |
echo "Python is installed" | |
else | |
echo "Python is not installed" | |
fi | |
if [ perl ] | |
then | |
echo "Perl is installed" | |
else | |
echo "Perl is not installed" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment