Try gpg --blahblah > logfile.txt 2>&1 Then you'll redirect stderr and stdout in the logfile.txt. Dennis