Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

GPG - How to suppress "You need a passphrase to unlock the secret key.."

user2514570Nov 17 2009
Hi,
I am trying to decrypt a file using gpg decryption command in unix. I am providing the passphrase in the command line. The file gets successfully decrypted but I get the below messages in the command window.

-------------------------------------------------
You need a passphrase to unlock the secret key for
user: "user" <123@mail.com>"
2048-bit RSA key, ID 123, created 2009-10-27 (main key ID 123)

gpg: encrypted with 2048-bit RSA key, ID 123, created 2009-10-27
"123@mail.com>"
----------------------------------------------------

I need to suppress all the messages above. I tried using *.sh 2>/dev/null , but this suppress only the 2nd part of the message and I still get the message "You need a passphrase to unlock the secret key ....."

Can someone please help me in suppressing all the messages above.

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2009
Added on Nov 17 2009
0 comments
2,167 views