473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

Background.

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",])
p[0].close()

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

Thanks.
-Dave
Jul 18 '05 #1
0 1627

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lukas Schnieper | last post by:
Hi all I work with Suse Linux 8.2 and Python 2.2.2 I'm trying to make a python script which makes a rlogin to another system and executes there another script. So it looks like this: ...
2
by: walala | last post by:
Dear all, I recently came across a Python program which used "telnetlib" to automate things in the several unix machines in our local networks; I attached the script as follows; I wonder if...
2
by: clusardi2k | last post by:
vbscript and/or javascript is most likely what I want to use! >From a SGI and a Linux box with a known PID, how do I determine if that process is running on a Windows computer? Please explain to...
2
by: Bimal | last post by:
Hi, I am trying to setup 2 logical nodes in a same instance. I changed the db2nodes.cfg file as 0 db2 0 1 db2 1 i also added db2 an entry db2 in my hosts.allow file
3
by: edmundleungs | last post by:
I have a db2 account on AIX. After connecting to AIX using SSH, i use the account to connect to DB. When I use "db2 connect <DB name>", it works fine. However, when i use "db2 connect to <DB...
13
by: Godzilla | last post by:
Hello, How do you create/spawn new processes in XP over telnet using python? I.e. I would like to create a new process and have it running in the background... when I terminate the telnet...
1
by: jordan.mccheyne | last post by:
I am running an RSH command through a Visual Studio 2005 app written in c++. I am using a ShellExecuteEx to run the command. If the user has Windows 2000, the RSH command completes correctly but...
1
by: jordan.mccheyne | last post by:
I am running an RSH command through a Visual Studio 2005 app written in c++. I am using a ShellExecuteEx to run the command. If the user has Windows 2000, the RSH command completes correctly but...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.