_UPPERME=$(echo $(basename $0) | tr '[:lower:]' '[:upper:]')
+function timestamp {
+ date +"[%y-%m-%d %H:%M:%S]"
+}
+
function scottyinfo {
- echo $_UPPERME: $@
+ echo $(timestamp) $_UPPERME: $@
}
function scottyerror {
- echo $_UPPERME: $@ >&2
+ echo $(timestamp) $_UPPERME: $@ >&2
}
function ssh255 {