GPG - How to suppress "You need a passphrase to unlock the secret key.."
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