From c02f249bb53663b91622313664a7aa3381b4cbb1 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Fri, 6 Dec 2024 20:30:59 -0500 Subject: [PATCH] added a timestamp to strider output --- scripts/core/host_strider.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/core/host_strider.sh b/scripts/core/host_strider.sh index ac90abda..77d20ab2 100644 --- a/scripts/core/host_strider.sh +++ b/scripts/core/host_strider.sh @@ -96,13 +96,13 @@ function emit_script_execution_stanzas() pushd $storage_dir &> /dev/null #hmmm: pretty ugly quoting below (source side) to get the output to have proper double and single quotes in it. delineator_line=$(dd if=/dev/zero bs=42 count=1 2>/dev/null | tr '\''\0'\'' '\''#'\'') - echo "$delineator_line" + echo "$delineator_line $(date +"[%Y-%m-%d %H:%M:%S]")" #echo "output will be stored in \"$tempfile\" also." bash "$script_to_run" >"$tempfile" 2>&1 exitval=$? popd &> /dev/null cat "$tempfile" - echo "$delineator_line" + echo "$delineator_line $(date +"[%Y-%m-%d %H:%M:%S]")" exit $exitval }' echo "$emission" @@ -197,7 +197,6 @@ function sozzle_hosts() # to: get the remote host prepared for the script, to run the script remotely, # and then to clean up the script again. - #separator 14 '#' notify_enter_host $external_host # create a directory on the remote host and get its name. remote_storage_dir="$(run_function_remotely emit_directory_creator "${external_host}" )" @@ -258,9 +257,6 @@ function sozzle_hosts() notify_exit_host $external_host done - - # drop a final separator line. - #separator 14 '#' } #### -- 2.34.1