Try this in a script: # Using 'echo "" | setsid ..' to make rpmbuild take "" as input to # GPG key password. echo "password" | setsid rpmbuild -ba --sign <specfile.spec> It worked for me :-) Regards Per A. Jos Vos wrote: > <pre wrap>Hi, > > Is there a way to sign rpm's without having the passphrase read > from a tty? I'm using a workaround with an expect script since > a long time, which works, but now I have different needs (commands > in a loop etc.) so that this isn't suffient anymore for me. > > Gpg itself has options like --passphrase-fd and --passphrase-file > and I tried to use this in an own script and define %_gpgbin > accordingly, but this doesn't seem to work: it looks like %_gpgbin > is not used at all, it even works when I define it as /bin/false! > > Regards, > > -- > -- Jos Vos <jos@xxxxxx> > -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 > -- Amsterdam, The Netherlands | Fax: +31 20 6948204 > > > </pre></body> > </html> > </html> _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list