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
> 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
> 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'
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
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
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
, 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
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