Mailing List Archive

Help needed while encrypting using UNIX shell script
Hi,
I am a new user for GNU. Incidentally, my encryption process works correctly when I run the commands from the command line but these fail whenever I use this from a UNIX shell script. We are using Sun Solaris as the operating system. We use shell scripts for our Oracle apps system. If you could render any help in this regard, it would be great. Please find below the code for the shell script:
FILE_NAME=`echo $1|cut -d" " -f9|sed 's/"//g' `
OUT_PATH=`echo $1|cut -d" " -f10|sed 's/"//g' `
cd ${OUT_PATH}
if [ -r ${OUT_PATH}/${FILE_NAME} ]
then
gpg -r "Print Mail" --encrypt "./hari.txt"
echo ${?}
fi
STEPRC=${?}
if [ "${STEPRC}" != "0" ]
then
echo "*****************************************************"
echo " Error while encrypting the file"
echo " Please contact your system administrator "
echo "*****************************************************"
exit 0
fi

I get the following error:
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: can't open `/t027/oracle/.gnupg/pubring.gpg'
gpg: keydb_search failed: file open error
gpg: Print Mail: skipped: file open error
gpg: ./hari.txt: encryption failed: file open error

I am under a very tight schedule so if any help could be given would be great.

Thanks.
Regards,
Hari.


Yahoo! India Matrimony: Find your partner online.
Re: Help needed while encrypting using UNIX shell script [ In reply to ]
On Wed, May 19, 2004 at 11:46:14PM +0100, Iyer, Hari wrote:
> gpg: WARNING: using insecure memory!
> gpg: please see http://www.gnupg.org/faq.html for more information
> gpg: can't open `/t027/oracle/.gnupg/pubring.gpg'
> gpg: keydb_search failed: file open error
> gpg: Print Mail: skipped: file open error
> gpg: ./hari.txt: encryption failed: file open error
>
>
>
> I am under a very tight schedule so if any help could be given would
> be great.

If you are under a tight schedule I recommend
using a support offer by one of the companies dealing
with GNUPG professionally (and commercially) of course.
E.g. g10code
http://www.g10code.de/