LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2014, 03:09 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Rep: Reputation: 33
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
 
Old 03-18-2014, 04:02 AM   #2
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Original Poster
Rep: Reputation: 33
I've created the gpg keys but it doesn't work jet.

Last edited by thomas2004ch; 03-18-2014 at 04:21 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Expect error - spawn id exp4 not open Rohit_4739 Linux - Newbie 3 12-20-2012 08:57 AM
ssh to servers with spawn,expect,send by script itamarm Linux - Newbie 4 01-14-2012 01:33 PM
Expect: spawn id expr4 not open gabes Linux - General 3 09-15-2011 12:07 PM
send: spawn id exp1025 not open in tcl/expect bharatbsharma Programming 3 04-22-2010 02:04 AM
spawn id exp3 not open yan General 3 07-23-2007 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration