#!/bin/bash # writes an uptime report to a file in the home directory which is named # after the current machine's hostname. source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" export hosty=$(hostname | sed -e 's/^\([^.]*\).*$/\1/') export REPORT_FILE="$HOME/${hosty}_uptime.log" echo "$(date_stringer) -- $(uptime)" >>"$REPORT_FILE" 2>&1