How to make send in a "q" when a screen shows up from exec?
34 views
Skip to first unread message
Benjamin Lei
unread,
Jul 4, 2012, 7:01:02 PM7/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
So I'm trying to exec something, but during the exec a screen will show up that I need to "q" out of to finish it. Specifically speaking, I'm trying to exec: rvm --force install 1.8.7
How do I do this with Puppet?
jcbollinger
unread,
Jul 5, 2012, 11:37:28 AM7/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
On Wednesday, July 4, 2012 6:01:02 PM UTC-5, Benjamin Lei wrote:
So I'm trying to exec something, but during the exec a screen will show up that I need to "q" out of to finish it. Specifically speaking, I'm trying to exec: rvm --force install 1.8.7
Ideally, there would be a command-line option to suppress the screen or provide the needed answer automatically. Most command-line based installers have such a thing in order to make them scriptable. If rvm doesn't provide that option then you might be able to pipe in the needed input: 'echo q | rvm --force install 1.8.7'. In that case make sure the Exec uses the 'sh' provider.
John
Benjamin Lei
unread,
Jul 5, 2012, 9:43:10 PM7/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
I see; thanks. I'll try that later.
The next thing I'm trying to do is:
rvm use 1.8.7 --default
The command executes successfully, but when I SSH back into my server the version is still its old one. What might be going wrong?
Brian Gupta
unread,
Jul 5, 2012, 9:48:58 PM7/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message