Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pgp in batch mode

Status
Not open for further replies.

pahad

Programmer
Oct 29, 2003
3
0
0
US
I have a clients public key, am trying to tar set of files and makinf a tar file further encrypting that with PGP clients publiec key. I am successful running the script at command line like ./xxx.sh but if I schedule the same as cron job fails complaining that

Cannot find the public key matching userid "xxx"
This user will not be able to decrypt this message.
Error building recipient key set.

I aappreciate if someone can shed some light on this.

Thanks,
phad
 
I had an issue like this once. YOu may have to add your environment variable to your ksh script. Also make sure the entire path is specified in crontab

PGPPATH=/usr/local/pgp
PATH=$PATH:usr/local/bin:/usr/sbin:/usr/java/current/bin:/.pgp
set -o vi
EDITOR=vi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top