C
C
crdrads2018-12-13 21:29:51
linux
crdrads, 2018-12-13 21:29:51

How to make a selection and confirm input in a bash script?

When the script is executed, a dialog box appears.
5c12a96155bbf589392422.png
How, in this case, to select an item and confirm it from the bash script, without my participation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mureevms, 2018-12-14
@mureevms

sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confnew' upgrade

--force-confdef- use the default version of the file. If it is not there, then it will ask a question and crash, so that this does not happen, added --force-confnew, which will install a new version of the config

P
planc, 2018-12-14
@planc

1)
2) 3) 4)

./a.sh << EOF 
2
тут еще
еще
и еще
EOF

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question