It is not actually python that I am most interested in. I'd like this to work for different interactive programs but specifically R, Matlab, and a debugger for Ox. Pexpect seemed to come close to what I wanted but it still seemed very complex and not very well documented (for me anyway). I'd want to have the interactive program open so that I can input things directly and also allow to send commands from vim. I can figure out how to send commands from vim. Just not how to get them to reach the interactive program :) If can figure out how to send commands from the command line (e.g., echo 'x=3') then I'd be pretty much set.
Do you have any very simple examples you might be willing to share? Thanks, Vincent On 12/7/04 4:02 PM, "Danny Yoo" <[EMAIL PROTECTED]> wrote: > > > On Tue, 7 Dec 2004, Vincent Nijs wrote: > >> Has anyone ever tried to send commands to a running interactive python >> session from, say, the command line or another app? > > Yes. This sort of thing can be done through an "expect" script. > > http://expect.nist.gov/ > > There's a port of expect for Python: > > http://pexpect.sourceforge.net/ > > Out of curiosity though, do you really need to run Python interactively? > -- _______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor