mute output of gpg2 -d

john doe johndoe65534 at mail.com
Fri Jul 13 16:14:11 CEST 2018


On 7/13/2018 11:13 AM, J. Tull wrote:
> It seems the usual way to supress the output of a command in linux is not
> working for gpg2:
> 
>      $gpg2 -d my_file.gpg 2>/dev/null
> 
> still outputs some data through stderr. So could someone try to find out a
> way to get rid of everything gpg2 is outputting but the decrypted output of
> the gpg file?
> 

It is working fine here, which version of gpg2 do you have and which 
distro are you using?

Output redirection is more  a shell issue then a gpg2 problem.
Can you redirect STDERR of other commands to the null device?

-- 
John Doe



More information about the Gnupg-users mailing list