Questions tagged [whiptail]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 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
0
votes
0answers
22 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 " "...
0
votes
1answer
54 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 ...
-2
votes
1answer
122 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 ...
0
votes
1answer
151 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": [ {"...
-1
votes
1answer
663 views

Array into whiptail checkbox - BASH [duplicate]

How do I show a whiptail checklist from Array?
1
vote
1answer
512 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 ...
0
votes
1answer
385 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 ...
2
votes
1answer
1k 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 "...
1
vote
1answer
86 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 --...
1
vote
1answer
1k 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://$...
3
votes
2answers
2k 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 ...
1
vote
1answer
362 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"...
2
votes
1answer
5k 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 ...
1
vote
1answer
749 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&...
3
votes
3answers
5k 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 ...
1
vote
1answer
555 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=$(...
0
votes
1answer
947 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/%...
1
vote
2answers
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:...
2
votes
2answers
1k 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%
2
votes
1answer
954 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\ ...
1
vote
2answers
858 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 ...
0
votes
1answer
54 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 "...
3
votes
1answer
927 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:$(...
1
vote
2answers
1k 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 ...
13
votes
4answers
19k views

whiptail or dialog

I am going to create script which will use user input, so I decided to use whiptail, but little bit confuse that which one is portable and will work in ubuntu 10.x and higher and CentOs5.x and higher. ...