rsh is a shell program which is used to connect to a remote host and execute one specified command.
Questions tagged [rsh]
68 questions
2
votes
1 answer
Perl qx() command not working as expected
I have a perl script as below, where I want to access a network path on a remote windows machine from a linux machine using rsh.
$cmd = "rsh -l $username $host \"pushd \\\\network\\path\\to\\the\\directory && dir\"";
print $cmd, "\n";
print…

him
- 487
- 3
- 12
2
votes
2 answers
How do you change a user's primary unix group in a ColdFusion rsh command?
We use an rsh command to check files into ClearCase:

Klog
- 109
- 1
- 7
2
votes
3 answers
rcp / rsh missing in windows 7
I have existing batch scripts which work in windows xp. These scripts use rcp and rsh commands that are supported in windows xp .
These scripts are used to connect to a unix box and transfer files to it. Later using rsh, the files are installed on…

Sudhakar Singh
- 389
- 7
- 19
2
votes
1 answer
How to get git to use an ssh (rsh) transport other than "ssh"
Is it possible to get git to use something other than "ssh" as the ssh program? Rsync has a -e option for this purpose, and other interfaces where rsh or ssh can be used as the transport. The particular use case I have is chaining the ssh…

projix
- 211
- 1
- 4
1
vote
1 answer
python libraries in a computer cluster
I'm having a problem for python to find the installed libraries when I run it in a computer cluster.
When I try, e.g., to load numpy in the script:
#file: /home/foo/test.py
import numpy
print numpy.__version__
on the server, I get…

Rafael S. Calsaverini
- 13,582
- 19
- 75
- 132
1
vote
2 answers
Use oc rsh to run for loop in container (openshift remote ssh)?
Based on:
https://unix.stackexchange.com/questions/1459/remote-for-loop-over-ssh
I am trying to run a for loop command through oc rsh but it fails with below error:
$ oc rsh my-app-10-lprki 'for i in /var/lib/*; do echo $i; done'
exec failed:…

u123
- 15,603
- 58
- 186
- 303
1
vote
1 answer
Nivo Slider doesn't work on webkit browsers with Really Simple History (RSH)
I am building an AJAX powered website which uses the Really Simple History (RSH) framework to handle back and forward requests.
I'm also using Nivo Slider for a simple slideshow. In Firefox and even IE, this works fine. However, in Chrome and…

Nick Brunt
- 9,533
- 10
- 54
- 83
1
vote
0 answers
Python subprocess.run CalledProcessError while running rsh
I am running a script on a remote machine as:
subprocess.run(
["rsh", self.target] + shlex.split(cmd),
check=True
)
The command always runs successfully on the remote machine, but as soon as it finishes on the remote machine, I get a…

Ojas
- 483
- 1
- 4
- 11
1
vote
0 answers
"rsh" timesout when "-n" option used
I am issuing a "rsh" command from a batch file (.bat). The "rsh" command has an option "-n". The command that gets executed on the remote machine takes around 10 mins to complete.
I noticed that the rsh times out and terminates in about 2 mins…

Nayan Soni
- 1,001
- 3
- 12
- 22
1
vote
2 answers
What does the backslash operator do inside RSH conditionals?
I'm interested to know what this snippet of RSH code does, and whether Bash has something similar:
if [ -z $ALPHA \
-z $BRAVO \
-z $CHARLIE \
-z $DELTA ]; then
var=$ZULU
fi

Zaid
- 36,680
- 16
- 86
- 155
1
vote
0 answers
Unable to capture failure of rsh
I have the below rsh code as a part of a script. This code runs in a loop within the main script. In case the rsh fails, I wish to capture the exit code in a log for which the below If part was created. But it does not seem to be working as it…

user3055262
- 405
- 3
- 9
- 20
1
vote
0 answers
When I transform my c program in a daemon rsh stay blocked in ubuntu system manager
I have a c program that launched by system call rsh in this way
system(" rsh -l $DTT $CTT './script.sh' ");
$DTT and $CTT are enviornment variable where i load in them the user and host name strings
when the c program is normal, the rsh work…

Alex
- 559
- 1
- 4
- 6
1
vote
1 answer
grep command doesn't work when run remotely
I have a script like this:
if rsh $server grep "string" /usr/path/file.txt
then
echo "yes"
else
echo "no"
fi
Basically I want to check the file in remote server containing some specific strings. It doesn't work and always display "yes"…

user2597504
- 1,503
- 3
- 23
- 32
1
vote
0 answers
BASH - Getting an rsh command to return a value or to timeout
I am trying to set a variable in a Bash script to the results of running a command on a remote machine via rsh with a timeout option, such as...
timeout -s KILL 2 rsh jane df -h | grep StorageMedia
2.7T 2.1T 607G 78%…

Ian Malcolm
- 11
- 1
1
vote
1 answer
Obtain rsh output through a program
I have small client program that uses rsh to get the inode number for a file. The problem I face is the rsh command is getting executed but there is no output is read by the parent.
If I run any command lets say "ls" that is executed locally, I can…

Sachin Jain
- 11
- 1