Peter Hansen wrote: > James Stroud wrote: > >> I am helping someone write a python script to run their DOS >> application through an SSH terminal. It seems that this program wants >> to access a DOS shell and send output there. If running remotely, this >> causes a problem because it locks up the program. The program seems >> (to me) to be looking for some non-existant DOS shell to send its >> output to. How might I emulate this shell (or whatever it is) with >> python? I have tried several flavors of python (Enthought, >> ActiveState, etc.). I have tried win32pipe.popen[1-4], and many other >> things that I can't even remember now. > > > What makes you think there's any DOS "shell" involved? Many DOS > programs didn't write to stdout, but drew directly into screen memory > with BIOS calls and such. Are you sure this is a more generic command > line program that just writes to "stdout" or the console? > > -Peter >
I honestly have no idea what this program is trying to do or whether a DOS shell is involved. I'm just assuming based on the behavior. The behavior is that if I start x-windows from the main cygwin terminal, and then I run the program from xterm in x-windows, the output goes to the main cygwin terminal from which I started x-windows. The output does not go to the x-terminal. I assume that this bizarre behavior has something to do with the fact that it freezes when running over SSH. Also, FWIW, I believe the program was written in pascal and compiled with turbo-pascal. The source is not available, though. This is yet another reason why all thing microsoft suck! James -- http://mail.python.org/mailman/listinfo/python-list