#!/bin/bash # showstatuswindow.sh # Rescue CD Backup & Restore Utility status window display # version 7.2.5 # Rod Wright 1/19/2024 # Refer to CHANGELOG file for details. # ----------------------------------------------------------------------------- STATUS_FILE="/root/status.txt" windowtitle="RescueBRU Status" while true ; do if ! ps ax|grep "watch -t -n1"|grep -q $STATUS_FILE ; then xfce4-terminal --disable-server --hide-menubar --hide-toolbar --title="$windowtitle" --geometry=110x13+0+480 -e "watch -t -n1 'cat $STATUS_FILE'" fi sleep 2 done