Questions tagged [whiptail]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Is it possible to ignore Enter Key press when using whiptail checklist and radiolist?

I have the following checklist that is rendered using whiptail I generated it using the following code: ## Available App Services in EdgeX-Foundry appServices=( "asc-http" "asc-...
user avatar
2 votes
2 answers
110 views

No keyboard output on terminal after running a script using read and whiptail

I've written a bash function that accepts a command as an argument, runs it in the background, and allows the user to kill the command by pressing any key. This part works fine. However, when I pipe ...
user avatar
  • 35
0 votes
1 answer
176 views

Issue with bash Dialog (Whiptail) progress bar

I am trying to create a bash Dialog (whiptail) progress bar for a list of commands. So, that progress bar shows along with messages when the commands get executed one by one in the background. I am ...
user avatar
  • 77
0 votes
1 answer
107 views

Is it possible to edit a file in whiptail?

For a new TUI, I want to employ whiptail or dialog to make it a bit more visually appealing. Afaik, whiptail is more widely available and even preinstalled on many systems, which is a good reason to ...
user avatar
  • 125
0 votes
0 answers
1k views

How to show a progress bar for lftp script for newer version of lftp in 2020?

I have read this question and its answer, but they do not answer my question. The shell script is this: let total=$(lftp -f lftp-script-count.txt | wc -l)-2 lftp -f lftp-script.txt | while read ...
user avatar
1 vote
1 answer
211 views

how to change the input box color while using form property in shell script using dialog

how to change the input box color while using form property in shell script using dialog
user avatar
0 votes
0 answers
32 views

Monitor Apache Selectively

I am working to parse apache logs in Common Format in realtime so that I monitor them while I work. "tail -F /var/log/apache2/access.log" works but provides more than I need. "awk '{print $1 " " $2 " "...
user avatar
  • 11
0 votes
1 answer
577 views

Total Progress over entire bash shell script

EDIT FOR CLARITY : say I have the following script (let's posit pv and curl are already installed) : (that currently runs under ubuntu but that I plan to make POSIX-compliant so that it may run on ...
user avatar
  • 296
-2 votes
1 answer
581 views

Changing font size in whiptail dialog boxes

I've made script using a few different whiptail boxes, which all work fine, but I'd like the font size to be larger. All my google searches on whiptail font size tell me either about whiptail box ...
user avatar
0 votes
1 answer
609 views

Dynamic options on whiptail got not printed

I have a json file which provides options for a 'whiptail' checkbox or radiolist. I grab them, make some redactions and wanna use them to show as options: defaults.json file: {"displays": [ {"...
user avatar
  • 175
-1 votes
1 answer
2k views

Array into whiptail checkbox - BASH [duplicate]

How do I show a whiptail checklist from Array?
user avatar
1 vote
1 answer
1k views

Checklist using whiptail - Why I can't run multi commands?

This code will run only for the first match because of the lines under functions: service httpd start but it will display echo from all functions if I remove all ssh... lines. Could someone explain ...
user avatar
  • 13
0 votes
1 answer
699 views

How to display three whiptail on the same screen?

I have three very long processes that I need to monitor. Rather than having three terminal windows open each with a separate whiptail progress bar. I am searching for a way to send three whiptail ...
user avatar
2 votes
1 answer
2k views

whiptail and calling external scripts

I would like to use whiptail to create a toolbox which runs external scripts when a menu item is chosen. I have the following code #!/bin/bash OPTION=$(whiptail --title "IT ToolBox v0.1" --menu "...
user avatar
  • 23
1 vote
1 answer
112 views

Restore upgrade after crash ssh

My ssh connection crashed during a whiptail about php.ini. (update apache) Is there a way to recover everything smoothly ? root 20689 0.0 0.0 20036 2284 pts/1 S+ 10:15 0:00 whiptail --...
user avatar
  • 1,478
1 vote
2 answers
2k views

lftp whiptail progress bar

I am using the following command in a bash script to download files from an ftp server. This command uses the -v option which shows the name of each file being downloaded. /usr/bin/lftp ftp://$...
user avatar
3 votes
2 answers
4k views

Change/edit text of whiptail gauge

I know that I can change the progress of a whiptail --gauge using something like: { for ((i = 0 ; i <= 100 ; i+=20)); do sleep 1 echo $i done } | whiptail --gauge "Please ...
user avatar
1 vote
1 answer
691 views

whiptail require three numbers before continuing

I have this whiptail form that prompts for user input. Is there a way to force someone to enter three numbers, before allowing him to continue? NUMBERS=$(whiptail --inputbox "Enter three numbers only"...
user avatar
2 votes
2 answers
8k views

Array into whiptail menu - BASH

I would like to show user friendly whiptail menu. My goal in whiptail is this: Choice1 Choice2 Choice3 Choice4 I have array consist of: Choice1 Choice2 Choice3 Choice4 I run array through loop ...
user avatar
  • 121
1 vote
1 answer
1k views

Strange behaviour of whiptail

My code: read -ra var <<<$(sed -ne's/^ *:\([[:upper:]]*\).*/\1/p' /etc/sysconfig/iptables) chains=$(whiptail --title "Add rule" --menu "chains" 16 78 5 "${var[@]}" 3>&1 1>&2 2&...
user avatar
  • 121
3 votes
3 answers
10k views

While loop with result from function - BASH

I would like to compare the result (0 or 1) of a function in a while loop. Function validmask checks whether the entered input is in mask format. If so I get 1, and if not I get 0. I want to run the ...
user avatar
  • 121
1 vote
1 answer
2k views

Whiptail radiolist

I am trying to build a iptables configure with whiptail. And I am stuck at the moment. I have got code below and I am trying to develop radio list where user choose between INPUT or OUPUT. io=$(...
user avatar
  • 121
0 votes
1 answer
1k views

Make whiptail work in a for loop

I have a bash script that checks ping for 163 sites(stores around the country), which is this: #!/bin/bash #storestest.sh #version 0.9.2 clear; printf "Check stores procedure started; `date +"%d/%m/%...
user avatar
  • 1
1 vote
2 answers
1k views

Whiptail/dialog input bug when executed from rc.local

I need to start a Bash script containing calls to dialog at Debian boot time. This is how I've been able to do it: Unset default root password Set --autologin option to tty1 in initrd (1:2345:respawn:...
user avatar
4 votes
2 answers
2k views

Resizing Whiptail to full terminal screen

How to make whiptail full terminal screen? "as big as the terminal", like fluid CSS, something like 100%
user avatar
  • 3,924
2 votes
1 answer
1k views

Questions about whiptail and bash functions

Say I have this script: #!/bin/bash function cpp-lang { yum install "Development Tools" } function updatesys { yum -y update yum -y upgrade } whiptail --checklist "test" 5 40 5\ ...
user avatar
  • 3,924
1 vote
2 answers
1k views

Bash script loop to grow parameters

I want to use whiptail to generate a checkbox list based on the output from another program. Only the first word on each line of the output from the first program is necessary, so I extract it using ...
user avatar
0 votes
1 answer
57 views

Confusion about basic bashscript loop - until/done [duplicate]

I have a bash script I'm working on to help with an installer. why doesn't this work? function fn_myFunc(){ local MYVAR=0 until ["$MYVAR" -ne 0]; do whiptail --yesno "...
user avatar
3 votes
1 answer
1k views

Change script to use whiptail instead of zenity

I'm having difficulty converting some zenity based script to use whiptail instead. The working script looks something like this: #!/bin/bash xfreerdp /v:farm.company.com \ /d:company.com \ /u:$(...
user avatar
  • 2,501
1 vote
2 answers
2k views

Displaying messages to tty using whiptail through monit

I would like to display a whiptail message on the login screen that is triggered by monit, but I am without luck. I understand it might be something to do with interactive/non-interactive shell. Here ...
user avatar
  • 111
20 votes
4 answers
28k views

whiptail or dialog

I am going to create a script which will use user input, so I decided to use whiptail. But now I'm a little bit confused about which one is portable and will work on Ubuntu 10.x and higher and CentOS ...
user avatar
  • 22.8k