I am testing tls renegotiation using this "for" loop and need to auto-answer with "R" for each iteration, I expected one of these permutations to work, neither of these is working, grateful for any suggestions
for ((i=0;i<10;i++))
do
"R" > echo `openssl s_client -connect 192.168.1.1:443`
done
for ((i=0;i<10;i++))
do
echo openssl s_client -connect 192.168.1.1:443
< "R"
done
echo
? See this. – Kamil Maciorowski Aug 23 '22 at 18:14<
and>
redirect from and to files, you need a pipe instead to redirect from one command to another. See also: https://mywiki.wooledge.org/BashGuide/InputAndOutput – ilkkachu Aug 23 '22 at 18:15