Questions tagged [whiptail]
32 questions
21
votes
4 answers
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 5.x and higher.
I know read, but I want a tool…
Rahul Patil
- 24,281
- 25
- 80
- 96
4
votes
2 answers
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
- 4,054
- 12
- 44
- 73
3
votes
2 answers
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 wait while installing" 6 60 0
But I am wondering…
user2370460
- 183
- 2
- 6
3
votes
3 answers
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 mask=$(whiptail ...) command and check the value…
Michal N.
- 121
- 1
- 3
- 11
3
votes
1 answer
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:$(zenity \
--entry \
--title="Username" \
--text="Enter…
oshirowanen
- 2,571
- 15
- 46
- 66
2
votes
1 answer
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 "Choose your option" 15 60 4 \
"1" "Get users dropped…
Ktakl
- 23
- 4
2
votes
2 answers
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 for like this:
for value in ${value[@]}
do
echo…
Michal N.
- 121
- 1
- 3
- 11
2
votes
1 answer
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\
Update "Update the system" on \
…
Lynob
- 4,054
- 12
- 44
- 73
1
vote
2 answers
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 is the script that gets triggered by…
Yuri
- 111
- 4
1
vote
1 answer
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 "Tools to install" --checklist 20 78 4 \
"NTP"…
BishwashK
- 23
- 7
1
vote
2 answers
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 it to a whiptail dialog gauge, the whiptail runs…
ridgek
- 25
- 4
1
vote
1 answer
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 use it. (Is that still true?)
But a nice-to-have…
steffen
- 135
- 5
1
vote
1 answer
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
- 11
- 1
1
vote
1 answer
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 it to me what is happening and maybe some solution…
Shimpu
- 13
- 5
1
vote
1 answer
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 --backtitle Package configuration --title…
bob dylan
- 1,832
- 3
- 20
- 31