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


Chronological Thread 
  • From: Medya < >
  • To:
  • Subject: [chef] Re: Re: simulate key press in a recipe
  • Date: Thu, 5 Mar 2015 17:16:54 -0600

is there a resource or a cookbook ? is it possible that u give me this example ?
# first run the shell script
./myscript.sh

#wait 5 seconds, type this
501

# hit enter




On Thu, Mar 5, 2015 at 5: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.

§