Hi, Can anyone see anything wrong with this script line? It's part of a PHP script although should be the same in most C based languages. $command = "echo '$passphrase\n$plaintext' | gpg --clearsign --batch --passphrase-fd 0"; Thanks for any help, Rob --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.506 / Virus Database: 303 - Release Date: 01/08/2003