[chef] Re: Re: simulate key press in a recipe


Chronological Thread 
  • From: Ranjib Dey < >
  • To: " " < >
  • Subject: [chef] Re: Re: simulate key press in a recipe
  • Date: Thu, 5 Mar 2015 15:25:06 -0800

you can use stdlib based module PTY from lwrp/hwrps:

chef's mixlib-shellout library too support STDIN arguments:

On Thu, Mar 5, 2015 at 3:08 PM, Vasiliy Tolstov < " target="_blank"> > wrote:
2015-03-06 2:06 GMT+03:00 Medya < "> >:
> I know if you have to do that, it means something is wrong ! but for some
> legacy application I really need to run a shell script wait a few seconds
> and then
> type something and  hit "Enter"
>
> is it possible in chef?


use expect for this, or write in ruby needed logic inside recipe.

--
Vasiliy Tolstov,
e-mail: ">
jabber: ">




Archive powered by MHonArc 2.6.16.

§