Skip to main content

Questions tagged [whiptail]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 views

Is it possible to periodially refresh a whiptail dialog?

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" &...
Adam Arold's user avatar
1 vote
1 answer
866 views

Create an array from the output of whiptail command

So, I am trying to use whiptail command to give users option to choose different things they want to install in their system. I use the whiptail --checklist command as below: name =$(whiptail --title &...
BishwashK's user avatar
1 vote
2 answers
865 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 ...
ridgek's user avatar
  • 25
0 votes
1 answer
981 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 ...
depar's user avatar
  • 89
1 vote
1 answer
402 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 ...
steffen's user avatar
  • 135
0 votes
0 answers
2k 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 ...
silviubogan's user avatar
1 vote
1 answer
390 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
Manikandan's user avatar
0 votes
0 answers
39 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 " "...
Dahere's user avatar
  • 11
0 votes
1 answer
910 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 ...
tatsu's user avatar
  • 306
-2 votes
1 answer
890 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 ...
user3075315's user avatar
0 votes
1 answer
821 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": [ {"...
Jan's user avatar
  • 175
-1 votes
1 answer
3k views

Array into whiptail checkbox - BASH [duplicate]

How do I show a whiptail checklist from Array?
Roger Ramos's 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 ...
Shimpu's user avatar
  • 13
0 votes
1 answer
961 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 ...
Michael Niño's 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 "...
Ktakl's user avatar
  • 23
1 vote
1 answer
132 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 --...
bob dylan's user avatar
  • 1,912
1 vote
2 answers
3k 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://$...
aristosv's user avatar
3 votes
2 answers
5k 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 ...
user2370460's user avatar
1 vote
1 answer
985 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"...
aristosv's user avatar
4 votes
2 answers
10k 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 ...
Michal N.'s user avatar
  • 141
1 vote
1 answer
2k 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&...
Michal N.'s user avatar
  • 141
3 votes
3 answers
11k 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 ...
Michal N.'s user avatar
  • 141
1 vote
1 answer
3k 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=$(...
Michal N.'s user avatar
  • 141
2 votes
1 answer
2k 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/%...
ChrisH's user avatar
  • 21
1 vote
2 answers
2k 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:...
pedroapero's 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%
Lynob's user avatar
  • 4,264
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\ ...
Lynob's user avatar
  • 4,264
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 ...
USERID_UNK's user avatar
0 votes
1 answer
59 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 "...
USERID_UNK's 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:$(...
oshirowanen's user avatar
  • 2,631
2 votes
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 ...
Yuri's user avatar
  • 121
24 votes
4 answers
33k 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 ...
Rahul Patil's user avatar
  • 24.9k