469,934 Members | 2,280 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

Processes/pipes cross platform issue - popen*() hangs using "rsh/rlogin" (not working in Windows vs. Linux)


I'm running on WinXP w/ MS Services for Unix installed (to give
rsh/rlogin ability), both Python 2.3 and 2.4 version. In linux, I'm
running RHEE with python2.3 version. The code below works fine for me
in linux, but in WinXP the popen*() command "hangs". More
specifically, I get an apparent python prompt (without the '>>> ', but
whatever I type has no effect, and hitting return does a CR but not
the additional LF, so I just type over what I had just typed). The
only way I can exit is with CTRL-BREAK, and rerun python. I've tried
the various flavors of popen[2|3|4], and the subprocess module in
python2.4, all with the same "bug".

Also, rsh/rlogin from windows DOS prompt work just fine.

Can anyone clue me in as to how to make this work in windows, or an
equivalent solution?

The gist of what I'm doing is this
import os
p = os.popen3("rsh LINUX_MACHINE.com -l USER")
p[0].writelines(["touch rsh_as_USER.txt\n",])

In linux, the target machine will then have the .txt file touch'ed.

Jul 18 '05 #1
0 1514

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Lukas Schnieper | last post: by
2 posts views Thread by walala | last post: by
2 posts views Thread by Bimal | last post: by
3 posts views Thread by edmundleungs | last post: by
13 posts views Thread by Godzilla | last post: by
1 post views Thread by jordan.mccheyne | last post: by
1 post views Thread by jordan.mccheyne | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.