Hi,
 
We am currently working on PGP encrytion and perty new to PGP. The PGP 
encrytion works fine when we run from the command prompt. However, we have a 
problem encypting file in shell script, because of its interactive nature of 
the pgp command. when i execute the command from terminal, it asks "Are you 
sure you want to use this public key (y/N)" once i press 'y' the flle is 
encrypted. My problem is how to suppress the interactive mode in shell script. 
 
Is there any other way in unix scripting to automatically pass the interactive 
values without manual intervention.
 
Your help of any kind will greatly simplify my work.
 
The following is a snapshot of the interactive mode of the PGP.
------------------------------------------------------------------
dlsnbds1:/export/data/home/c_aratho > pgp -e Extract.csv TSP
Pretty Good Privacy(tm) Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.
Export of this software may be restricted by the U.S. government.
 
Recipients' public key(s) will be used to encrypt.
 
Key for user ID: TSP
768-bit RSA key, Key ID 0xB297ECA5, created 2002/06/05
WARNING:  Because this public key is not certified with a trusted
signature, it is not known with high confidence that this public key
actually belongs to: "TSP".
 
Are you sure you want to use this public key (y/N)?
------------------------------------------------------------------

Regards
Arun Kumar S.R


      

[Non-text portions of this message have been removed]

Reply via email to