There is a situation when I try to call a command with parameters, after which I have to enter some more characters from the keyboard. For example:
1 c:\> gpg -d wtf.crypt 2 Enter passphrase: When we work on the command line, it's not very bad. You can simply enter what is expected of us.
But in my task I want to work through php, for example. system () command.
Then it turns out, after performing the command given in the example above, the page will freeze, and somewhere in the background I will be expected to enter something.
The question is whether there is a system in windows and linux that allows you to pre-set the parameters that can be used if there are questions after calling the command?
Fictional example: gpg -d wtf.crypt && [qwerty, y, y, 1,1,3] in square brackets, deferred parameters, in order of appearance ... is there something like that?