send string to input of another process

Alex Naumov alexander_naumov at opensuse.org
Tue Sep 13 08:21:03 EDT 2011


Hello everybody,

I'm looking for some solution, maybe someone of you can help me.

I call another process via os.system("process") and it waits for some input.
I have to write a comment (for example, like using svn or git), and after
that to close input (for example, like ":wq" using vim).
How can I give/write this comment and put it in the input for next process
(which start after)?


Thanks a lot for your time and help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110913/43172702/attachment.html>


More information about the Python-list mailing list