I have a bash script that executes another program. This program prompts the user for additional input. Question is, how do I automate that input from my bash script?
For example, running the s3cmd
command from my script prompts me for:
Enter new values or accept defaults in brackets with Enter.
Refer to user manual for detailed description of all options.
Access key and Secret key are your identifiers for Amazon S3
Access Key: _
In my shell script, how would I insert a string for the Access Key prompt, then simulate the "enter" key?
EDIT: for clarity