Initial commit
This commit is contained in:
18
customcd/files/root/rescuebru/showfaultwindow.sh
Normal file
18
customcd/files/root/rescuebru/showfaultwindow.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# showfaultwindow.sh
|
||||
# Rescue CD Backup & Restore Utility fault window display
|
||||
# version 7.2.5
|
||||
# Rod Wright 1/19/2024
|
||||
# Refer to CHANGELOG file for details.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
STATUS_FILE="/root/faultstatus.txt"
|
||||
|
||||
windowtitle="Server 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=25x3+2000+100 -e "watch -c -t -n1 'cat $STATUS_FILE'"
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
Reference in New Issue
Block a user