As an example, I would like to enter mysql with a password. I KNOW I can use -pmypass, but I want to learn how to redirect stdin in bash. So my test
mysql -u limited_user -p <text to redirect into stdin when it prompts for my pass>
I saw <filename before, but I do not want to store data in a file. I tried both, and ... - but no luck. I'm not sure what ... - does.
user34537
source
share