#### LAST DOC MODIFY: 2011-11-18 #!/bin/bash oh_ess=`uname -s | cut -c 1-6` if [[ "$oh_ess" == "Darwin" ]]; then echo "" echo "---------- OS VERSION IS Darwin" elif [[ "$oh_ess" == "CYGWIN" ]]; then echo "" echo "---------- OS VERSION IS Cygwin" else echo "" echo "---------- OS NOT SUPPORTED, EXITING with 2" exit 2 fi ########################################################### # FLAGS -m os hardware -n nodename -p processor -r os release -s os name -v os version __________________________________________________________________________________________ Copyright 2000-2011 Dylan Schneider. All Rights Reserved. This document uses unix line breaks(LF). Text on macnode.com is for example only, not as actual working instructions. Text on macnode.com should only be used as a guide, and only by advanced it professionals.