[BangPypers] auto answer or auto input

Vivek Ramakrishna vivek.ramakrishna at globalsoft.com
Wed Sep 24 17:42:47 CEST 2014


Hi Ashok

Have you looked at the pexpect module? It's like the expect utility in
Unix, for programmatically driving interactive applications.

http://pexpect.sourceforge.net/pexpect.html

Vivek
On Sep 24, 2014 8:28 PM, "Ashok K" <mails.ashok at yahoo.com.dmarc.invalid>
wrote:

> Hello,
>
> I am trying to write a python script which auto accepts input from a
> dictionary/list.
>
> Sample:
> Enter your name:
> Enter email:
>
> The above two fields should be auto answer from a list
>
> a = ['Ram','ram at example.com']
>
> Please share your suggestions.
>
> Thanks,
> Ashok
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list