On Jun 30, 5:42 pm, Petr Messner <petr.mess...@gmail.com> wrote:
> Hi,
>
> this can be done using module "subprocess"; there is also function
> popen() in module "os" and module popen2, but they are deprecated
> since Python 2.6.
>
> PM
>
> 2009/6/30 venutaurus...@gmail.com <venutaurus...@gmail.com>:
>
> > Hi all,
> >       I have to write an automted script which will test my c
> > program. That program when run will ask for the commands. For example:
>
> > local-host# ./cli
> > Enter 1 for add
> > Enter 2 for sub
> > Enter 3 for mul
> > 1            -------Our option
> > Enter two numbers
> > 44 33  -------- Our option
> > Result is 77
>
> > As shown in the above example it lists all the options and waits for
> > user input and once given, it does some operations and waits for some
> > more. This has to be automated.
>
> > Can someone give suggestions how to do this in Python (Linux Platform
> > in particular).
>
> > Thank you,
> > Venu.
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
>

Can you give some more explanation about how exactly this can be
done..

Thanks for reply,
Venu
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to