Running a python script from JAVA, (telnetlib doesn't run under PythonWin)

David Fisher python at rose164.wuh.wustl.edu
Fri Feb 4 11:33:46 EST 2000


I'm sorry.  Your problem is different than the one i was thinking of.  
I'm guessing your problem has something to do with how the python 
interpreter is invoked.  On my computer, win98/python 1.5.2, telnetlib 
will run on the console, and in IDLE, but not in PythonWin.  I don't 
know anything about PythonWin's internals, so i can't tell you what 
PythonWin is doing differently.  You might try using a different 
method in java to call python.  I really just guessing though.

Sorry i couldn't be more help.
David

ps. you might drop a note to Mark Hammond.  If he knows about the 
problem with telnetlib on PythonWin be might be able to shed some 
light on your dilemma.

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 2/4/00, 8:04:18 AM, "Alain" <saraz at videotron.ca> wrote regarding Re: 
Running a python script from JAVA, with correct indentation:


> Here's the python code of my script:
> import telnetlib

[...]

> Any idea?

> David Fisher <python at rose164.wuh.wustl.edu> a écrit dans le message :
> 20000204.9584017 at sparky.spkydomain...
> >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

> On 2/3/00, 3:12:09 PM, "Alain" <saraz at videotron.ca> wrote regarding
> Running a python script from JAVA, with correct indentation:

> > Hi,

> > I'm trying to run a script from a file. The script is written in
> python. The
> > script is a telnet session between a router and a computer. If I run
> the
> > script from a DOS prompt window, everything is good. But if I start
> the
> > script from my program, using a Runtime object, there's a problem. The
> > communication between the router and the computer is stop, even if the
> > telnet session is still open. Here's the JAVA code:
> [...]
> > Is there someone have a solution?





> --
> http://www.python.org/mailman/listinfo/python-list







More information about the Python-list mailing list