Automation Help

Malte Starostik malte@kde.org
Thu Sep 27 23:52:01 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Thursday 27 September 2001 23:31 schrieben Sie:

> I've looked through the archive, but to no avail.
>
> I have this script in a file on Solaris:
>
> /home/rruss/gpg-test/bin/gpg -e -r "FIRSCo EDT" --no-secmem-warning
> --homedir /home/jfair/.gnupg --no-tty --batch --always-trust
> --passphrase-fd "My Pass Phrase" --force-v3-sigs --compress-algo 1
> --comment ""
> /tmp/PGPManualTest.txt
>
> but the script won't run until I hit enter. I'm trying to automate it, but
> I'm having trouble.
> Are these two problems related?
You cannot pass the passphrase on the command line for security reasons, so - --passphrase-fd "My Pass Phrase" won't work as --passphrase-fd expects a file descriptor, not the pass phrase. So either you pass a known fd or just 0 to enter the passphrase on STDIN. - -- Malte Starostik PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A 27CD 5431 7745 D2F3 C787] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7s570VDF3RdLzx4cRArNuAKC1k9tgFJdIdiPgM9HRZw7gvxejXwCcDu5H XsmKmfFUpFOpKapQQxJh+NQ= =qi7H -----END PGP SIGNATURE-----