Re: questions: no input file, and pascal programming

2009-05-03 Thread Philip
Hmm, that would spoil things. reading this http://www.velocityreviews.com/forums/t365339-p-write-eof-without-closing.html the opinion there is that sending control-Z is just a signal from the keyboard to the shell which the shell uses to cut the flow to the application listening on stdin, it do

Re: questions: no input file, and pascal programming

2009-05-03 Thread James P. Howard, II
Under DOS, redirecting from the standard output of A to the standard input of B meant the contents were stored in a temporary file somewhere, due to DOS's inability to multitask. It's worth checking to be sure Windows still doesn't do that when running those at the command line. James On Sun May

Re: questions: no input file, and pascal programming

2009-05-03 Thread Philip
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

Re: questions: no input file, and pascal programming

2009-05-03 Thread Philipp Schafft
reflum, 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 control-Z > then gpg will encrypt the message and dump the pgp text

Re: questions: no input file, and pascal programming

2009-05-03 Thread Brad Rogers
On Sun, 03 May 2009 10:22:49 +0100 Philip wrote: Hello Philip, > 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. Through trial and error, I found D works.

Re: questions: no input file, and pascal programming

2009-05-03 Thread Philip
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 control-Z 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. Howe

Re: questions: no input file, and pascal programming

2009-05-02 Thread Faramir
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Philip escribió: > I got it to work in Windows. > With a default install of gpg4win gpg is not in the path, but this > command works > echo Mary had a little lamb|"c:\Program Files\GNU\GnuPG\gpg.exe" --yes > -eat -o test.txt.gpg -r [keyid] I disag

Re: questions: no input file, and pascal programming

2009-05-02 Thread Hardeep Singh
The same can be done in Windows. Visit http://blog.hardeep.name/computer/20080828/linux-shell-on-windows/ this will give you the shell and the Echo commands that you need. Hardeep Singh http://blog.Hardeep.name On Sat, May 2, 2009 at 1:05 PM, Philip wrote: > I found that if I just type "gpg" I

Re: questions: no input file, and pascal programming

2009-05-02 Thread Philip
I got it to work in Windows. With a default install of gpg4win gpg is not in the path, but this command works echo Mary had a little lamb|"c:\Program Files\GNU\GnuPG\gpg.exe" --yes -eat -o test.txt.gpg -r [keyid] I'm thinking that it might be easier for a pascal programmer to interface with g

Re: questions: no input file, and pascal programming

2009-05-02 Thread Philip
I found that if I just type "gpg" I get this "gpg: Go ahead and type your message ..." which looks promising but I can't find any documentation on how to use it. Also this works in linux "echo Mary had a little lamb|gpg --yes -eat -o test.txt.gpg -r [keyid]" but I don't know how to do something s

Re: questions: no input file, and pascal programming

2009-05-01 Thread John Clizbe
Philip wrote: > Hi > I have some questions about gpg > 1. using gpg command line, can I pass data to be encrypted to gpg that > isn't in a file? For example if I want to encrypt "Mary had a little > lamb" to a an asc file but I don't want to put that text onto the hard > drive unencrypted first.

questions: no input file, and pascal programming

2009-05-01 Thread Philip
Hi I have some questions about gpg 1. using gpg command line, can I pass data to be encrypted to gpg that isn't in a file? For example if I want to encrypt "Mary had a little lamb" to a an asc file but I don't want to put that text onto the hard drive unencrypted first. 2. is there something lik