How to give the keywork from command line.

Laurent Jumet laurent.jumet at skynet.be
Sun Feb 28 08:44:02 CET 2010


Hello Mario !

"Mario Castel n Castro" <mariocastelancastro at gmail.com> wrote:

> Hi, I'm doing a bash script for pack (Tar), compress (lzip or bzip2)
> and encrypt (GPG with Rijndael 128) very important files, but is
> supposed to be non interactive, shouldn't ask the user for password
> when executed, please can you tellme how I can give it from the
> command line arguments?.

    Using
--passphrase-file FILE
    means that the first line of FILE will be used as passphrase.

--passphrase STRING
    uses STRING as the passphrase.

    Additionnaly, you'll probably need all or some of the switches:
--batch
--no-tty
--yes
    to suppress console interaction.

-- 
Laurent Jumet
      KeyID: 0xCFAF704C




More information about the Gnupg-users mailing list