Visit Our UNIX and Linux User Community


openpgp


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting openpgp
# 1  
Old 09-05-2009
openpgp

I have to create a script that will automatically respond when I have to encrypt a file. I have tried in shell and bash, and even expect but can't get it to work. I really don't want to do it in perl. The problem is it keeps asking if I am sureif I want to use the key. How do I force it to encrypt without it asking the question?

The command I am using is:

gpg -e -r (email address) --openpgp (filename)
# 2  
Old 09-06-2009
Only guessing - but did you try the --batch-mode and/or --yes command(s) mentioned in the according man page ...?

Previous Thread | Next Thread
Test Your Knowledge in Computers #571
Difficulty: Medium
A simple units bug in the Mars Climate Orbiter caused an error which resulted in loses of over $125M USD in 1999.
True or False?

Featured Tech Videos