using decrypt from shell script

Steve Butler sbutler@fchn.com
Fri May 31 16:28:02 2002


#!/bin/ksh
# COPYRIGHT (c) 1995-2002 Stephen M. Butler dba XRG
# 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
# =================================================================
#
#  gpg_decrypt
#     Interface for edi and default routines to decrypt pgp files vi GnuPG.

homedir=$(default gpg_home)

  rm -f "$3" 2>&1 1> /dev/null
  default gpg_pass$1 \
  | gpg --homedir $homedir --passphrase-fd 0 --no-tty --skip-verify \
        --output "$3" --decrypt "$2"
#

-----Original Message-----
From: Terry Gehring [mailto:tgehring@sccoast.net]
Sent: Friday, May 31, 2002 6:15 AM
To: gnupg-users@gnupg.org
Subject: using decrypt from shell script


I'm really new to using Gnupg, so I apologize for probably asking a
question that has been asked many times before. But I have an
application developed in C and Korn Shell scripts that needs to decrypt
GPG files automatically and can't seem to get pass the requirement to
enter the passphrase. I've tried using "here" and attempted to use
--batch. How can I do this?




_______________________________________________
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.