Bash script help -- Script2 calls Script1 and supplies input to script1.
I have an app startup script that requires user input.
# start-app.sh
Enter PIN <user manually enters PIN here>
<app startup continues>
I want to write a second script that will call the first script, supply the input (PIN) automatically, then allow the first script to continue and start the app.
The problem is, I need script2 to give the PIN to script1 while script1 is running.
Is this possible?
Thanks
|