better brew package sets for prep feisty
[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 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
5 export hosty=$(hostname | sed -e 's/^\([^.]*\).*$/\1/')
6 export REPORT_FILE="$HOME/${hosty}_uptime.log"
7 echo "$(date_stringer) -- $(uptime)" >>"$REPORT_FILE" 2>&1