Here is a simple one for checking the status of an Apple Software.
It's a real pain when Mac Mini Servers RAIDs get degraded.
#!/bin/sh
#get RAID Status
status=diskutil appleRAID list | grep "Status:" | awk '{print $2}'
echo "<result>$status</result>"
--
Doug Hanley doug at mac-tek.com - 702-396-0697
Apple Certified Systems Administrator - Apple Certified Trainer
Apple Certified Support Professional - Apple Certified Technical Coordinator
MacTEK Consulting & Training - http://www.Mac-TEK.com
Apple Authorized Training Center (IT & Pro Apps) - Adobe Authorized Training Center
Apple Consultants Network Member - Apple Authorized Service Provider