[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: STDIN script help



Matt (mhersant_(_at_)_comcast_(_dot_)_net) wrote:

> I'm trying to get gpg to use the contents of a file for
> symmetric encryption.  The only way I know how is the -"passphrase-fd 0"
> option.  Unfortunately, this makes gpg's input STDIN.  How then, can I
> specify the file to encrypt?  
> 
> prompt> cat phrase | gpg -symmetric -passphrase-fd 0 ????????????????

This comes to mind (untested):

$ gpg -symmetric -passphrase-fd 3 <myfile 3<phrase

Don't ask for the csh version, or I'll just wrap the whole thing in
sh -c '...'.

-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg_(_at_)_wooledge_(_dot_)_org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |



Visit your host, monkey.org