Help needed while encrypting using UNIX shell script

Iyer, Hari mailhiyer at yahoo.com
Thu May 20 00:46:14 CEST 2004


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20040519/6246258a/attachment.html


More information about the Gpa-dev mailing list