projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wow, more nice new scripts. time tracker lets different activities be tracked for...
[feisty_meow.git]
/
scripts
/
system
/
write_uptime_report.sh
diff --git
a/scripts/system/write_uptime_report.sh
b/scripts/system/write_uptime_report.sh
index b4a35c174724d0f6fe611b33f12be8a47f7ce5c8..e9627f5ffb22e9a36a066bcd4170709e9914ed5d 100644
(file)
--- 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.
#!/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/functions.sh"
export hosty=$(hostname | sed -e 's/^\([^.]*\).*$/\1/')
export REPORT_FILE="$HOME/${hosty}_uptime.log"
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