noninteractive "pass insert" fails
Ernesto Alfonso
erjoalgo at gmail.com
Fri Jul 27 16:32:25 CEST 2018
Hi,
I need to generate a numeric pin but pass seems to only support a yes/no
special characters flag.
So I generate my own pin:
PIN=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${LENGTH})
When I try to insert that into pass via standard in:
pass insert ${NAME} <<< $PIN
I get exit status 1 with no error message, and no password is inserted.
- How can I insert a password non-interactively?
- Alternatively, how can I generate a numeric pin with no alpha characters?
- Should pass provide an error message when it fails?
Thanks,
Ernesto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20180727/31958495/attachment.html>
More information about the Password-Store
mailing list