I tried with single list and that works fine. But my reponses are like
this:
       Enter command: "U"
       Enter choice : "S"
       Enter command: "M"
       Enter choice: "U"
       Enter choice: "S"
       Enter choice: "b"
       Enter Command: "q"

if i give like this expect module will run all the Enter command reponses
and then Enter choice responses, but I want to run Enter command, choice
and then Enter command, choice, choice, choice and finally Enter command
 Enter command:
    - "U"
    -"M"
    -"q"
Enter choice:
   - "S"
   - "U"
   - "S"
   - "b"

Really appreciate your help.

On Tue, Jul 30, 2019 at 10:45 AM Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:

> On 30.07.2019 18:24, ansi ari wrote:
> > Thank you, but i have something like this: if i use the list Enter one is
> > going to look for M right after U and thats not going to work.
> >
> > responses:
> >>   * Enter one*: "U"
> >       Enter next: "S"
> >>    *Enter one*: "M"
> >>    Enter next: "U"
> >       Enter next: "S"
>
> Sorry, don't understand what you mean.
>
>
> --
> Kai Stian Olstad
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/cd1a9dff-654a-7074-9fe6-e62d325c8fd3%40olstad.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD91Hsets_jkQi-ocKp9wF8G8qMeNEg14_o%2BGBt9iqkVqqYREw%40mail.gmail.com.

Reply via email to