I've got a script which is configuring a software. When i run the script it asks for user input like the ports etc.
Is it possible to run the script and pass it strings from a file?
My file with inputs looks like:
8080
1100
password
password
y
I've tried to run this:
cat /installation/inputs | /etc/init.d/myprogram configure
EDIT: After editing the password the command worked. Maybe there was a wrong char in it which caused the error...