From 8bfc4d04b754a90834d6a15fa8c6e64310ca5831 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 16 Sep 2026 09:20:55 +0200 Subject: [PATCH] feat(ux): show temp log file paths after YES confirmation in all scripts After the user confirms with YES, each script now prints the paths of the two temporary files that are written continuously during the run, so they can be monitored with tail -f without having to know the paths by heart. Affects scan_, recover_, restore_, recreate_bad_signature.sh. recreate shows per-account log file names since it writes one per user. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01GfXh5sRbEaXiEX6KjAPivc --- recover_bad_signature.sh | 12 ++++++++++++ recreate_bad_signature.sh | 12 ++++++++++++ restore_bad_signature.sh | 12 ++++++++++++ scan_bad_signature.sh | 12 ++++++++++++ 4 files changed, 48 insertions(+) diff --git a/recover_bad_signature.sh b/recover_bad_signature.sh index 74ef762..40032a0 100755 --- a/recover_bad_signature.sh +++ b/recover_bad_signature.sh @@ -1137,6 +1137,18 @@ if $terminal ; then fi fi +if $terminal ; then + echo "" + echo -e " \033[1mTemporäre Dateien – werden laufend aktualisiert:\033[m" + echo "" + echo -e " Fortschritt / Debug-Meldungen (PHP-Ausgabe auf STDERR):" + echo -e " \033[1mtail -f ${log_file}\033[m" + echo "" + echo -e " Rohergebnis pro Account (PHP-Ausgabe auf STDOUT, Datei für Datei):" + echo -e " \033[1mtail -f ${LOCK_DIR}/result_.tsv\033[m" + echo "" +fi + { echo "==================================================================" diff --git a/recreate_bad_signature.sh b/recreate_bad_signature.sh index 54e7da5..0c85c12 100755 --- a/recreate_bad_signature.sh +++ b/recreate_bad_signature.sh @@ -1100,6 +1100,18 @@ if $terminal ; then fi fi +if $terminal ; then + echo "" + echo -e " \033[1mTemporäre Dateien – werden laufend aktualisiert:\033[m" + echo "" + echo -e " Fortschritt / Debug-Meldungen (PHP-Ausgabe auf STDERR, pro Account):" + echo -e " \033[1mtail -f ${LOCK_DIR}/${script_name%%.*}_.log\033[m" + echo "" + echo -e " Rohergebnis pro Account (PHP-Ausgabe auf STDOUT, Datei für Datei):" + echo -e " \033[1mtail -f ${LOCK_DIR}/result_.tsv\033[m" + echo "" +fi + { echo "==================================================================" diff --git a/restore_bad_signature.sh b/restore_bad_signature.sh index c043c10..f20f876 100755 --- a/restore_bad_signature.sh +++ b/restore_bad_signature.sh @@ -1181,6 +1181,18 @@ if $terminal ; then fi fi +if $terminal ; then + echo "" + echo -e " \033[1mTemporäre Dateien – werden laufend aktualisiert:\033[m" + echo "" + echo -e " Fortschritt / Debug-Meldungen (PHP-Ausgabe auf STDERR):" + echo -e " \033[1mtail -f ${log_file}\033[m" + echo "" + echo -e " Rohergebnis pro Account (PHP-Ausgabe auf STDOUT, Datei für Datei):" + echo -e " \033[1mtail -f ${LOCK_DIR}/result_.tsv\033[m" + echo "" +fi + { echo "==================================================================" diff --git a/scan_bad_signature.sh b/scan_bad_signature.sh index 56067f3..5c8003f 100755 --- a/scan_bad_signature.sh +++ b/scan_bad_signature.sh @@ -779,6 +779,18 @@ if $terminal ; then fi fi +if $terminal ; then + echo "" + echo -e " \033[1mTemporäre Dateien – werden laufend aktualisiert:\033[m" + echo "" + echo -e " Fortschritt / Debug-Meldungen (PHP-Ausgabe auf STDERR):" + echo -e " \033[1mtail -f ${log_file}\033[m" + echo "" + echo -e " Rohergebnis pro Account (PHP-Ausgabe auf STDOUT, Datei für Datei):" + echo -e " \033[1mtail -f ${LOCK_DIR}/scan_.tsv\033[m" + echo "" +fi + # ----- # - Main part of the script