psql
multiple times in a single shell script.cased
client requests access on each invoking of a command-line program. For regular usage from the command-line, this is often preferable. However, for a better workflow with shell scripts, we recommend setting a session approval duration
to a number that users are not prompted to request access on each program invocation, and to avoid impacting any other prompt input your shell script may require.