I have a whipail dialog where I display a dashboard:
source ../script/includes/tasks
pick_task () {
local options=(
"$LOGS_TASK" "Check the logs of a service"
"$KILL_TASK" "Kills a service"
"$KILL_ALL_TASK" "Kills all services"
"$SELECT_TASK" "Allows you to select the services you want to run"
)
local menu_height="${#options[@]}"
local dialog_height=$((menu_height + 9))
local dialog_width=80
result=$(whiptail --title "Dashboard" --menu "What do you want to do?" "$dialog_height" "$dialog_width" "$menu_height" "${options[@]}" 3>&1 1>&2 2>&3)
echo $result
}
This works fine but I'd like to also display some additional information in this window that dynamically refreshes. Is it possible to refresh this dialog while it is open?
Asked by Adam Arold
(133 rep)
Mar 23, 2024, 05:59 PM
Last activity: Mar 24, 2024, 07:29 PM
Last activity: Mar 24, 2024, 07:29 PM