I would like to automate the response for some question prompted by some programs, like mysql prompting for a password, or apt asking for a ‘yes’ or … when I want to rebuild my haystack index with a ./manage.py rebuild_index.
For MySQL, I can use the –password= switch, and I’m sure that apt has a ‘quiet’ like option. But how can I pass the response to other programs ?
Why can’t you just use pipes?
For example, for an automated auto accept, just use
yes, that just outputs a neverending stream ofy.(source: wikimedia.org)