Obtaining different script results than via command line
Kevin Williams (DL)
Kevin.Williams at gkndriveline.com
Fri Sep 30 19:36:03 CEST 2011
Hello,
I am using gpg on a Linux system.
When I am using the following command line to create an encrypted output
I get a compatible output file.
gpg --armor --recipient "AFG_PROD" --output file.txt.pgp --always-trust
--encrypt test.txt
When I use the same command line plus a -batch element in a script, the
output file is slightly larger than the command line version and my
recipient can't decode it.
gpg --armor --batch --recipient "AFG_PROD" --output file.txt.pgp
--always-trust --encrypt file.txt
(also tried without the - -batch) gpg --armor --recipient "AFG_PROD"
--output file.txt.pgp --always-trust --encrypt file.txt
All other aspects remain the same:
* User
* Directory
* Input file
I have searched extensively and can find no reason for it to do this.
Does anyone have any recommendations as to what I am overlooking?
Regards,
Kevin Williams
--------------------------------------------------------------------------
This e-mail and any attachments transmitted with it contain information which is confidential, intended solely for the addressee(s) and which may also be privileged or exempt from disclosure under applicable law. If you are not the addressee(s), or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, print, disclose or use any part of it or its attachments. Internet communications are not guaranteed to be secure or free of any virus. The GKN Group does not accept liability for any loss or damage arising in any way from changes to this e-mail or its attachments which may occur in transmission due to network, machine or software failure or manufacturer or operator error, or from unauthorised access or interference with internet communications by any third party or from the transmission of any viruses. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the GKN Group or any part of it is personal to the sender and is not given or in any way endorsed by the GKN Group or any part of it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20110930/af9d4aa9/attachment.htm>
More information about the Gnupg-users
mailing list