On 04/21/18 18:56, David Wright wrote:
On Sat 21 Apr 2018 at 13:04:20 (-0700), David Christensen wrote:On 04/20/18 12:38, Brian wrote:DECRYPT=$(scrypt dec /usr/local/bin/myscript) && eval "$DECRYPT"On 04/21/18 09:36, David Wright wrote:If so, then won't the password be revealed by ps while eval is evaluating it?Apparently, not: ...That just demonstrates a race between "echo hello" and ps. Echo won, so all ps saw was the sleep command. What you need in $CMD is a command that's slow to execute and loses the race: ...
You're right -- I blew it. David