first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / scripts / system / write_uptime_report.sh
1 #!/bin/bash
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