Re: [Tutor] Connecting to interactive program

2004-12-07 Thread Alan Gauld
CC'd back to tutor list. - Original Message - From: "Vincent Nijs" <[EMAIL PROTECTED]> To: "Alan Gauld" <[EMAIL PROTECTED]> Sent: Tuesday, December 07, 2004 10:56 PM Subject: Re: [Tutor] Connecting to interactive program > Alan, > > So

Re: [Tutor] Connecting to interactive program

2004-12-07 Thread Alan Gauld
> I would like to create a python script that would function as follows. > > ./script.py intpy > > Where the scipt setsup the comminication to 'intpy' which would be an > interactive python sessions (or some other interactive program). OK, two steps back here I think. Can you show us an imaginary

Re: [Tutor] Connecting to interactive program

2004-12-07 Thread Alan Gauld
> Has anyone ever tried to send commands to a running interactive python > session from, say, the command line or another app? This isn't too hard if you use stdin/stdout. But it does depend on what you mean by send commands from the command line. If the process is a daemon for example and it isn'

Re: [Tutor] Connecting to interactive program

2004-12-07 Thread Vincent Nijs
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 t

Re: [Tutor] Connecting to interactive program

2004-12-07 Thread Danny Yoo
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 Pyth

Re: [Tutor] Connecting to interactive program

2004-12-07 Thread Vincent Nijs
etts Financial Services > Phone: 617-954-5882 > Pager: 781-764-7321 > E-mail: [EMAIL PROTECTED] > Linux User Number: #201204 > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Vincent Nijs > Sent: Tuesday, December 07, 2

RE: [Tutor] Connecting to interactive program

2004-12-07 Thread Robert, Andrew
, December 07, 2004 2:38 PM To: [EMAIL PROTECTED] Subject: Re: [Tutor] Connecting to interactive program Has anyone ever tried to send commands to a running interactive python session from, say, the command line or another app? If so, please let me know how you achieved this. Vincent On 12/1/04 4:10 PM

Re: [Tutor] Connecting to interactive program

2004-12-07 Thread Vincent Nijs
Has anyone ever tried to send commands to a running interactive python session from, say, the command line or another app? If so, please let me know how you achieved this. Vincent On 12/1/04 4:10 PM, "Vincent Nijs" <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to send information from an e