Reputation: 1492
I am trying to execute a script file which asks for password as input. Is there any way we give the command the input it needs automatically?
It's in psql which has parameter -U
for username but no parameter for password.
Example:
exa00009@exa00009:~$ sh redshift.sh
Password for user xyz:
Upvotes: 1
Views: 260