Valentyn Hruzytskyi Asked: 2018-10-20 02:37:15 +0800 CST2018-10-20 02:37:15 +0800 CST 2018-10-20 02:37:15 +0800 CST How to handle multiple parameters from a user's selection in a checklist menu? [duplicate] 772 I'm creating script that runs commands based on information from a checklist dialog: dialog --checklist "Choose what you want to install:" 0 0 0 1 mysql on 2 java on 3 git off 2> tempfile I have the correct data in tempfile (1 2), but I don't know how to use this data in future in my script. scripts command-line bash dialog 1 Answers Voted pLumo 2018-10-20T02:49:22+08:002018-10-20T02:49:22+08:00 You can use --output-fd 1 to send output to stdout and then capture it as normal. answer=$(dialog --checklist "Choose what you want to install:" 0 0 0 1 mysql on 2 java on 3 git off --output-fd 1)
You can use
--output-fd 1
to send output to stdout and then capture it as normal.