I created a bash script that perform some operations inside a while loop. In one command, the console asks for an input and I have no idea how to provide this input in order to continue with my script.
while read line;
do
string_array=($line)
username=${string_array[0]}
password=${string_array[1]}
kinit $username
===> here I need to enter the $password and press "ENTER" to continue
done <myfile
Any suggestion?