rsh is a shell program which is used to connect to a remote host and execute one specified command.
Questions tagged [rsh]
68 questions
0
votes
1 answer
python subprocess - get exit status of command run on different machine using rsh
I am trying to run some commands on some machine which I am connecting through the rsh command (can't use ssh for my case).
Through subprocess.check_call function, I am executing the command and am expecting check_call to exit with exception when…

prcm
- 3
- 1
0
votes
0 answers
Rsh remote command to run on a port
We have a replication server that we use to query DB. Each port number on replication represents the original server where each database lies for us to query.
So i want to do e.g
rsh replicationServer:3306 "select x from y"
But can't figure the…

user3303266
- 371
- 1
- 9
- 22
0
votes
2 answers
Unable to run script remotely on VIO servers?
I need to run an KSH script in VIO server remotely. But as VIO server is in restricted shell, I tried as below.
ssh -q -T padmin@vioserver "oem_setup_env" < script.ksh
This was worked fine last time, But when try again today I found this throwing…

Sriram P
- 179
- 1
- 13
0
votes
1 answer
Running rsync with rsh option via exec.Command
I'm invoking rsh in go exec.Command:
rsh := fmt.Sprintf("--rsh=\"/usr/bin/ssh -p %s -o StrictHostKeyChecking=no -l %s\"", *destPort, *destUserName)
cmd := exec.Command("rsync", "-avz", rsh, from, fmt.Sprintf("%s:%s", *destHost,…

Salah Eddine Taouririt
- 24,925
- 20
- 60
- 96
0
votes
1 answer
gdb could not be started - DDD to a remote inferior debugger
Im trying to attach DDD to gdb on a remote machine. I have configured rsh to not require a pass for my machine & username.
ddd opens with "rtx5:1234: not found" and a pop-up with "GDB could not be started". From calling ddd --host rtx5:2159 --trace…

LikeTheRock
- 81
- 5
0
votes
0 answers
Having problems running MPI programs with rsh (with Open MPI)
I have been running MPI programs on my testbed with ssh without problems. But when I wanted to switch to rsh to avoid encryption and run a program with mpirun, there is no output. I inspected the traffic with Wireshark and there is a TCP packet with…

María M.
- 21
- 3
0
votes
2 answers
How to determine current remote connection type? (rsh or ssh)
I want to know if there is some methods to find out the current connection type to remote server (rsh or ssh?). Environment is Solaris 9, SuSE linux, csh.

Alsor Zhou
- 43
- 1
- 4
0
votes
1 answer
AIX script hangs when using /dev/null > 2>&1
I am trying to run a script in AIX to execute another script on a remote server. In addition to the remote script i need to send the stdout to /dev/null. The same command works fine on another server but when I run on the current server it hangs,…

dnl
- 1
- 1
0
votes
1 answer
using subprocess.popen with ssh - python
i'm trying to run a python script from host to some clients via subprocess.popen.
The command is sort of fire and forget and the process in the clients should run for an unlimited time untill i kill it.
the problem is - when i run this line in…

aa1331
- 11
- 2
0
votes
2 answers
how to logon to different host machine and run some tool over there and get the data back to the original host using scripting
Problem statement:
consider the present scenario, i am running some commands/code on host-1, and i need to open a tool on host-2 where i may perform some operations on data obtained on host-1.
what i was doing till now was opening two different…

Akshit Jain
- 1
- 3
0
votes
1 answer
Cannot Use RCP in Windows Server 2008, But OK with RSH, Why?
I am trying to use "rcp" command to copy files from a Unix computer to a Windows Server 2008 R2 computer. Somehow, it fails to copy anything.
For example, I am using the following command to copy the .rhosts file from the Unix computer to the…

Jay C
- 141
- 1
- 12
0
votes
1 answer
Pass rsh command password?
Trying to log into a server with rsh, even though I usually log into it with ssh. Works perfect with ssh, but I don't want to enter my password every single time.
I guess I need to pass the rsh command a password since I tried the…

MrPickles
- 1,255
- 1
- 16
- 31
0
votes
1 answer
Explain how doit() function works in rshd.c
I want to know how rsh runs any command. I am using netkit-rsh-0.17 package. My OS is centOS.
In rshd directory, rshd.c performs the task to run any command on server.
In this file, doit() is the main function who performs all the…

devsda
- 4,112
- 9
- 50
- 87
0
votes
1 answer
Determine the delay in mirroring ( mirroring is done by using rsync and rsh )
I have a master server, that crawls data on web, and do indexing. And after that it starts mirroring to all the mirror server.
For that I use rsync and rsh.
But before start updating in mirror server, it takes time. I want to find where that delay…

devsda
- 4,112
- 9
- 50
- 87
0
votes
1 answer
How can I remotely log on to a machine, execute a script which sets up an environment, then accept user input?
I've been trying to figure out a way to do this for a few hours now, and am having no luck.
I have a large environment file that I have saved as a ksh script. This script works perfect if I type . ./setEnv.sh
However, what I'm trying to do is use…
Matthew