--batch option
Steve Butler
sbutler@fchn.com
Tue Feb 19 16:45:01 2002
It's reading STDIN (file handle #0). I haven't tried this in a Windows
environment but you should be able to pipe it in just as in Unix.
-----Original Message-----
From: karthikn@canada.com [mailto:karthikn@canada.com]
Sent: Tuesday, February 19, 2002 6:20 AM
To: sbutler@fchn.com
Cc: gnupg-users@gnupg.org
Subject: RE: --batch option
Thanks Steve.
When gnupg is attempting to read the passphrase from a file descriptor, what
file does it look for? I am working on a Windows2000 environment.
Karthik.
On Mon, 18 February 2002, Steve Butler wrote:
>
> Try this script:
>
> #!/bin/ksh
> # COPYRIGHT (c) 1995-2001 Stephen M. Butler dba XRG
> # COPYRIGHT (c) 1995-2001 First Choice Health Network
> # This information may be copied, distributed and/or modified under
> # certain conditions, but it comes WITHOUT ANY WARRANTY.
> # See the Design Science License for more details
> # =================================================================
> #
>
> homedir=$(default gpg_home)
>
> rm -f "$3" 2>&1 1> /dev/null
> default gpg_pass$1 \
> | gpg --batch --homedir $homedir --passphrase-fd 0 --no-tty
--skip-verify
> \
> --output "$3" --decrypt "$2"
> #
>
> $1 = pass phrase number to indicate which pass phrase to pass (I have two
> public keys)
> $2 = incoming file name (with .pgp extension)
> $3 = file name to save it as
>
> NOTE: default is a utility (ksh script) to return information from a
> configuration file.
> gpg_home -- the home directory for gpg
> gpg_pass1 -- the pass phrase for key #1
> gpg_pass2 -- the pass phrase for key #2
>
>
> -----Original Message-----
> From: karthikn@canada.com [mailto:karthikn@canada.com]
> Sent: Monday, February 18, 2002 1:50 PM
> To: gnupg-users@gnupg.org
> Subject: --batch option
>
>
> All:
>
> Looking to automate the decryption process using gnupg. Can't seem to find
> any examples of the --batch option.
> Any links\documentation would be of immense help.
>
> Thx,
> Karthik.
>
>
> __________________________________________________________
> Get your FREE personalized e-mail at http://www.canada.com
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all copies
of the original message.
__________________________________________________________
Get your FREE personalized e-mail at http://www.canada.com
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.