LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ERROR by send: spawn id exp6 not open while executing (https://www.linuxquestions.org/questions/linux-software-2/error-by-send-spawn-id-exp6-not-open-while-executing-4175498569/)

thomas2004ch 03-18-2014 03:09 AM

ERROR by send: spawn id exp6 not open while executing
 
Hi,

I have a script looks as follow:
Code:

#!/usr/bin/expect -f

spawn sudo rpm --resign $argv
expect -exact "Enter pass phrase: "
send -- "Ped5avuH0w48\r"
expect eof

As I run this script I got error as follow:

Code:

signRpmTarget:
    [exec] send: spawn id exp6 not open
    [exec]    while executing
    [exec] "send -- "Ped5avuH0w48\r""
    [exec]    (file "/opt/soe/svn-work/jboss-soe/jboss-6.2.0/build/rpm-sign.exp" line 5)
    [exec] spawn sudo rpm --resign /opt/soe/svn-build/jboss-eap-6.2.1/noarch/jboss-eap6-pbv-icf-6.2.1-1.noarch.rpm
    [exec] error: You must set "%_gpg_name" in your macro file
    [exec] Pass phrase check failed
    [exec] Result: 1


thomas2004ch 03-18-2014 04:02 AM

I've created the gpg keys but it doesn't work jet.


All times are GMT -5. The time now is 09:58 PM.