On 30.07.2019 20:04, ansi ari wrote:
>   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,

It wont.


> 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"

That's what expect will do, just try it and you will see.


-- 
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/04bae32d-516b-8341-a9af-01259470017a%40olstad.com.

Reply via email to