X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fwrite_uptime_report.sh;h=0220b334dc97af5a1b47121addab1e0d0f46b877;hb=7d715f6667e8bb5d7a4f965adb5f36853eb47818;hp=b4a35c174724d0f6fe611b33f12be8a47f7ce5c8;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/scripts/system/write_uptime_report.sh b/scripts/system/write_uptime_report.sh index b4a35c17..0220b334 100644 --- a/scripts/system/write_uptime_report.sh +++ b/scripts/system/write_uptime_report.sh @@ -1,6 +1,7 @@ #!/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 "$($BINDIR/mdate) -- $(uptime)" >>"$REPORT_FILE" 2>&1 +echo "$(date_stringer) -- $(uptime)" >>"$REPORT_FILE" 2>&1