gpg output to a filename ending with .pgp

Daniel Eggleston eggled at gmail.com
Tue May 25 19:22:25 CEST 2010


On Tue, May 25, 2010 at 10:03:30AM -0400, Jeremy Bennett wrote:
>    I have been googling for an answer on how to have gpg encrypt a file to a
>    file with a pgp extension.  It looks like maybe the only way is via a
>    output redirect (> ?). I'm trying this via a command line on a windows
>    box.  Here is my initial command in a batch file:
> 
>    c:\gnupg\gpg -e -r tester --yes %1
> 
>    I think I tried to use a --output or a -o switch but neither seemed to
>    work.
>    Has anyone tried this before? Could you paste your command here? Please cc
>    me since i'm not on the mailing list yet.
> 
>    Thanks very much!
> 
> 
>    Jeremy R. Bennett
>    Client Systems Developer/Analyst
>    Narragansett Bay Insurance Company
> 
> 
> 
> 
> 
>    --------------------------------------------------------------------------
> 
>    This e-mail message (including attachments, if any) is intended for the
>    use of the individual or entity to which it is addressed and may contain
>    information that is privileged, proprietary, confidential and exempt from
>    disclosure. If you are not the intended recipient, you are notified that
>    any dissemination, distribution or copying of this communication is
>    strictly prohibited. If you have received this communication in error,
>    please notify the sender and erase this e-mail message immediately.

> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users

--output=file.pgp outputs correctly for me:

eggled at pokeserver ~ $ gpg -e -a -r eggled at gmail.com --yes --output=file.pgp
This is some data
eggled at pokeserver ~ $ cat file.pgp
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.14 (GNU/Linux)

....... snip ..........
-----END PGP MESSAGE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: </pipermail/attachments/20100525/0e59a1e4/attachment.pgp>


More information about the Gnupg-users mailing list