Author

Topic: GPG shell help with stdin (Read 1354 times)

sr. member
Activity: 448
Merit: 252
September 08, 2012, 05:36:21 PM
#6
nicely done Smiley thanks. Do you know if the 'ctrl-d' is a standard unix end of file signal or specific to gpg?

Standard Unix when reading from stdin. Good question, forgot to mention that.

You might have to Ctrl-D a second time to fully terminate the reading -- the first one will just let the program read what you've typed so far, if it hasn't read it yet.  Anyway, glad it helped!
full member
Activity: 562
Merit: 100
September 08, 2012, 05:29:12 PM
#5
I use usually do
Code:
echo "SIGN THIS" | gpg -a -s

Cheers for the info, I got where I wanted with 'ctrl-d' though, pipes (is | a pipe?) are going to be for another day I think Wink
legendary
Activity: 1498
Merit: 1000
September 08, 2012, 05:23:05 PM
#4
I use usually do
Code:
echo "SIGN THIS" | gpg -a -s
full member
Activity: 562
Merit: 100
September 08, 2012, 05:21:17 PM
#3
nicely done Smiley thanks. Do you know if the 'ctrl-d' is a standard unix end of file signal or specific to gpg?
sr. member
Activity: 448
Merit: 252
September 08, 2012, 05:06:35 PM
#2
Try ctrl-D after you paste, that signals "end of file" when reading from stdin.  GPG should then output the decrypted content.
full member
Activity: 562
Merit: 100
September 08, 2012, 05:00:47 PM
#1
Can anyone explain to me how to GPG decrypt my clipboard buffer instead of a file?

Here's what I've tried and it doesn't work..

type 'gpg' or 'gpg -d' in a shell

paste a pgp message (apple-V) into the shell

Huh nothing happens until I ctrl-c to close gpg down.

I guess I don't know what to do while gpg is running, and all the help files i can find seem to relate to operations on files

Jump to: