Initial commit
This commit is contained in:
18
customcd/files/root/rescuebru/showstatuswindow.sh
Normal file
18
customcd/files/root/rescuebru/showstatuswindow.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user