[CentOS] Passing password to script for rpmsign of list of .rpm files

Fri May 20 18:11:58 UTC 2011
Ljubomir Ljubojevic <office at plnet.rs>

John Hodrien wrote:
> On Fri, 20 May 2011, Ljubomir Ljubojevic wrote:
> 
>> I am trying to automatize signing of unsigned .rpm files. My repo has at
>> least 50 x 3 packages.
>>
>> But I would have to type numerous passwords for each file. I can not see
>> hot to pass pass phrase to script.
>>
>> rpmsign --resign {--pass=??} <filename from list> ????
>>
>> Can someone advise me how to do that?
> 
> http://www.karan.org/blog/index.php/2011/05/06/sign-multiple-rpms-with-one-command
> 

Thanks. I am bit behind visiting sites. I have found expect script for 
this but this is much more elegant.

Many thanks to KB also for solution.

Ljubomir