decrypting many files to stdout

Werner Koch wk at
Fri Jun 29 10:31:06 CEST 2007

On Thu, 28 Jun 2007 22:24, kloecker at said:

> eval "$(gpg-agent --daemon --default-cache-ttl 3600)"
> Then decrypt all files with a simple for-loop. Afterwards you might want 
> to kill gpg-agent.

If you don't want gpg-agent to start with your session, it is easier to
run it this way:

  gpg-agent --daemon --default-cache-ttl 3600 /bin/sh

This invokes a new shell with everything setup for using gpg-agent.
After you are finished you can simply give an "exit".  The cache TTL is
measured in seconds; without the option you get 10 minutes.



More information about the Gnupg-users mailing list