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?