Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Bash redirection problem



I'm trying to write a bash script to automate encryption and decryption of a gnumeric spreadsheet. I thought I'd feed gpg the passphrase from a file like this:

gpg -d ccinfo.gnumeric.gpg < $HOME/cc/passphrase > $HOME/cc/ccinfo.gnumeric

But each time I run the script it prompts me to enter my passphrase.
Then a little ways down in the script I have this line:

gpg -e ccinfo.gnumeric < $HOME/cc/key

When it gets to this line, it prompts me for my key ID.

Any idea why this is not working? Is gpg weird or have I made a dumb mistake?
Thanks.


(Yes, I know this is very insecure, but I don't really need much security for this purpose.)

--
Stuart Luppescu -=-=- s-luppescu <AT> uchicago <DOT> edu
CCSR at U of C ,.;-*^*-;.,  ccsr.uchicago.edu
    (^_^)/    才文と智奈美の父
Thank God I'm an atheist!



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links