2 # writes an uptime report to a file in the home directory which is named
3 # after the current machine's hostname.
4 export hosty=$(hostname | sed -e 's/^\([^.]*\).*$/\1/')
5 export REPORT_FILE="$HOME/${hosty}_uptime.log"
6 echo "$($BINDIR/mdate) -- $(uptime)" >>"$REPORT_FILE" 2>&1