Questions tagged [rsh]

rsh is a shell program which is used to connect to a remote host and execute one specified command.

68 questions
0
votes
1 answer

RSH: Running out of ports

I have an issue where I am running out of ports when using RSH to start a script remotely. I have a script that i need to run that has been pushed out to every server. I have a list of servers (hostfilelist) Basically, I have a simple loop that will…
nitrobass24
  • 371
  • 2
  • 8
  • 21
0
votes
1 answer

Obtaining PID of Last Command Run on Other Machine

I am using the following code to launch a command on another machine: #!/bin/bash /usr/bin/rsh -n $Host_Name "cat asdf.txt &" And I am trying to obtain the PID of the cat command by using the following: /usr/bin/rsh -n $Host_Name pid="$!" But when…
halexh
  • 3,021
  • 3
  • 19
  • 19
0
votes
0 answers

Using rsh from exec() Windows 2008 Server

It seems many people have similar questions to this but none have been answered that fit what I am doing. I am currently running apache and php on a Windows 2008 R2 server. From there I am trying to run an rsh command. Here is an example: exec('rsh…
Steve Valliere
  • 1,882
  • 12
  • 31
0
votes
1 answer

How to source remote scripts and assign variables remotely in rsh?

There is this problem that's been bothering me lately. I'm trying to do the following using rsh or remsh (in HPUX): #!/bin/sh rsh myDNS" DIRECTORY=/tmp/foo1/foo2 echo $DIRECTORY " When I try to run the above script, however, I get blank output…
Justin
  • 742
  • 5
  • 17
  • 34
0
votes
1 answer

Error when performing rsh command

I've tried executing a simple "ls" command on a remote server, using the command: rsh -l limlim/myPassword myServerName "ls" When running this command, I get the following error message: rshd: luser too long --> What am I doing wrong here? My…
limlim
  • 3,115
  • 2
  • 34
  • 46
-1
votes
1 answer

What all command can be given using rsh?

What commands can be given from an rshd server to an an rsh client? Only file transfer commands or commands such as run a command i.e python xyz.py command can also be given.
-1
votes
1 answer

Cvs ext method "Connection refused"

I'm using Windows 7 and cygwin. I want to connect to our CVS repository with the following command: cvs -d :ext:my_username@my_ip:/my_repo_path/ checkout my-parent Unfortunately I'm getting this error: my_ip:514: Connection refused How can I…
Harold L. Brown
  • 8,423
  • 11
  • 57
  • 109
-2
votes
1 answer

Remote Shell in Linux

I want to do rsh for 10 servers, i have saved login and server name in one file and trying to run that file using below code. But its showing the output of first line not for other lines. while read line do rsh -l $line 'hostname;id' done…
Nitin
  • 15
  • 1
  • 5
1 2 3 4
5