questions: no input file, and pascal programming
subs at christiantena.net
Sun May 3 17:22:54 CEST 2009
I spent a little time coding in windows today (using lazarus).
I have come to the conclusion that you can pipe stuff to gpg from inside
dos window, but that if you try to pipe stuff directly from the pascal
program it fails.
I actually got my program to work by piping to cmd.exe with "echo Mary
had a little lamb|gpg" inside the stream, which sort of proves that I
know how to program a pipe.
Example code is at
you can look at this code by installing lazarus, unziping the above file
into a folder, and then from lazarus do project/open project and point
it at the lpi file in the folder
hit F9 to compile it
This feels a bit like a bug in gpg to me...
Philipp Schafft wrote:
> On Sun, 2009-05-03 at 10:22 +0100, Philip wrote:
>> So far I have figured out that on windows if I enter the command
>> gpg -eat -r [recipient key]
>> I get a prompt on the console
>> If I then type a message, followed by <enter> control-Z <enter>
>> then gpg will encrypt the message and dump the pgp text to the screen,
>> or to a file if I used the -o [filename] option.
>> However on linux control-Z just terminates the program (no pgp text)
>> Does anyone know the official, correct console way to get pgp to
>> terminate and output the encrypted text from console?
>> I'm amazed that it just doesn't seem to be documented anywhere.
> Take a look at the ASCII table (man ascii :). There is ^D (EOT - end of
> transmission) for this. This is used by all systems I'm aware of but
> window$. Don't know why they use something diffrent, maybe just to be
> diffrent and break the standard.
More information about the Gnupg-users