I'm trying to script up a call to scrypt, a command line encryption program. I can call it like thiscat ./mysuperescrettextfile.txt | scrypt enc -and the dash makes it read from standard in to get the data to encrypt. But then it prompts twice for the password to encrypt. I'd like to pass in the password and use the -P flag. The man page describes the -P flag as:If -P is given, then scrypt does not print any prompts, and reads a passphrase from stdin.Is it possible to send data to standard in in a way that would let scrypt differentiate between the data to encrypt and the password? Usually man pages list mutually exclusive options, but this doesn't list - and -P as mutually exclusive, which gives me a little hope that I can do this.
automatically script up responses to a program that already reads from standard in
stdin