Skip to main content
16 events
when toggle format what by license comment
Oct 2, 2024 at 13:22 comment added Rafs 10 30 is the position?
Jun 22, 2018 at 21:52 comment added code_dredd As a note to others, remember to avoid launching the shell script with the -e option, as this will cause your scripts to automatically exit with a "failure" as soon as dialog, whiptail, etc. returns a non-zero exit code, which in their case is used to tell you what the user's selection was (e.g. yes/ok=0, no/cancel=1, ESC key=255) rather than communicating success or failure.
Nov 17, 2017 at 23:01 history edited jimmij CC BY-SA 3.0
added 101 characters in body
May 27, 2016 at 9:22 history edited jimmij CC BY-SA 3.0
added 10 characters in body
May 27, 2016 at 9:16 history edited jimmij CC BY-SA 3.0
added 835 characters in body
May 27, 2016 at 8:48 comment added Ferrybig All dialog options are explained in the manual: man dialog
May 27, 2016 at 0:45 comment added Thomas Dickey Or, you could use the --stdout option.
May 27, 2016 at 0:29 comment added jimmij @tempforFindMeInTheWoods If you want to present output of the command parted -l to the user via dialog box then probably option --menu is a better choice instead of -yesno. In such case you would have to play a bit with descriptors to store output into the variable, for example: output=$(dialog --backtitle "Package configuration" --title "Configuration sun-java-jre" --menu "$(parted -l)" 15 40 4 1 "sda1" 2 "sda2" 3 "sda3" 3>&1 1>&2 2>&3 3>&-); echo $output
May 27, 2016 at 0:01 comment added tempforFind Me In The Woods just the dialog. Pardon my confusing english. I need parted -l to be displayed and then I can put in code somehow to capture a user entry of a letter (/dev/sd?).
May 26, 2016 at 23:54 comment added jimmij @tempforFindMeInTheWoods Into which "little block" do you want to output that parted -l? Sorry, but I don't understand what you are trying to achieve.
May 26, 2016 at 23:40 comment added tempforFind Me In The Woods now is there a way to output a code block (ex parted -l) into the little block? I see the option "--programbox" but nothing is happening
May 26, 2016 at 23:28 comment added tempforFind Me In The Woods oh ok that makes sense
May 26, 2016 at 23:21 comment added jimmij @tempforFindMeInTheWoods if by output you mean exit code, then just as usuall: it is stored inside ? variable, try echo $?.
May 26, 2016 at 23:17 comment added tempforFind Me In The Woods thats beautiful "Bla bla bla..." but how do you capture the output?
May 26, 2016 at 23:16 vote accept tempforFind Me In The Woods
May 26, 2016 at 21:49 history answered jimmij CC BY-SA 3.0