The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
51 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
72 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
19 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"...
1
vote
1answer
428 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
81 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
528 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 ...
0
votes
1answer
31 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
0answers
105 views

Make whiptail work in a for loop

This is my first question ever here... So please be gentle :) 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 ...
1
vote
2answers
355 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:...
0
votes
1answer
191 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%
1
vote
0answers
356 views

Questions about whiptail and bash functions

I'm a bash newbie. Say I have this script #!/bin/bash function cpp-lang { yum install "Development Tools" } function updatesys { yum -y update yum -y upgrade } whiptail --...
1
vote
2answers
350 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
42 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
437 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
368 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 ...
9
votes
3answers
8k 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. ...