#!/usr/bin/expect -f ### rpm-sign.exp -- Sign RPMs by sending the passphrase. set timeout 300 spawn rpm --resign {*}$argv expect -exact "Passphrase: " send -- "Fg9XYQ7uB6CXQ3iDnhcK\r" expect eof ## end of rpm-sign.exp