Print out only first line
Tobias Girstmair
junkgir-passwd at yahoo.de
Sun Aug 27 16:33:58 CEST 2017
piping pass through 'head' is safe, but using that output as a command
line parameter makes it visible in 'ps ax' for all users for the whole
time 'dummyProgram' is running.
'sshpass' manpage[1] explores other options; my favourite being using an
environment variable to get the password to 'dummyProgram' like this:
DUMMYPROGRAM_PASSWD=$(pass Group/Title/User|head -n1) dummyProgram --envvar-password
[1]: https://linux.die.net/man/1/sshpass
More information about the Password-Store
mailing list