#!/bin/sh DATESTRING1=`date +"%H"` DATESTRING2=`date +"%M"` mkdir -p /var/log/status/$DATESTRING1 chmod og-rwx /var/log/status/$DATESTRING1 /usr/local/sbin/serverstate.sh | gzip -c > /var/log/status/$DATESTRING1/status.$DATESTRING2 exit 0