S
S
Stepan Gervik2020-04-21 09:30:26
bash
Stepan Gervik, 2020-04-21 09:30:26

How to pass arguments to the command line in advance?

There is a bash utility that, as it runs, requires you to enter various parameters, such as a password, number of users, and so on. I do not quite understand whether it is possible to make all these values ​​filled in automatically, that is, I enter the name of the utility, its "future" parameters, run it, and nothing else is required of me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2020-04-21
@HiLevel

not in advance, but interactively.
for example, like this https://habr.com/ru/company/ruvds/blog/328436/
but according to the mind, you need to write a script that parses the exhaust of a running program and slips the necessary answers into the input.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question