Error while running rsh commands !!!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error while running rsh commands !!!
# 1  
Old 10-30-2006
CPU & Memory Error while running rsh commands !!!

Hi All

I am trying to run an RSH command remotely to a machine, but I am gettinf the following errors, can anyone help me to resolve the errors

user@server10:~> rsh user@server24 'uname -n'
rcmd: getaddrinfo: Temporary failure in name resolution


Thanks in advance to all
Chirantan
# 2  
Old 11-07-2006
try this:

rsh -l <username> <server> "<command>"

this should work.

cheers.

Quote:
Originally Posted by csaha
Hi All

I am trying to run an RSH command remotely to a machine, but I am gettinf the following errors, can anyone help me to resolve the errors

user@server10:~> rsh user@server24 'uname -n'
rcmd: getaddrinfo: Temporary failure in name resolution


Thanks in advance to all
Chirantan
# 3  
Old 11-07-2006
Yeah, that works but you must also make sure that the .rhosts for that particular is setup accordingly, if not, you'll get an error:

Permission denied.
# 4  
Old 11-08-2006
Quote:
Originally Posted by csaha
Hi All

I am trying to run an RSH command remotely to a machine, but I am gettinf the following errors, can anyone help me to resolve the errors

user@server10:~> rsh user@server24 'uname -n'
rcmd: getaddrinfo: Temporary failure in name resolution


Thanks in advance to all
Chirantan
if you "ping server24," does it come back OK? if not, try pinging the ip address of the remote server and see if that comes back ... if it does, fix your name resolution mechanism --- NIS, NIS+, /etc/hosts, DNS, etc. --- and you should be okay ... also make sure that your local server can only be associated with 1 hostname by the remote server ...


good luck!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

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 run them in paralell. for host in `cat... (1 Reply)
Discussion started by: nitrobass24
1 Replies

2. Shell Programming and Scripting

RSH connection problem while running MPI program

I'm trying to run MPI programs on 8 machines, but I get the error connect to address 127.0.0.1 port 544: Connection refused Trying krb4 rsh... connect to address 127.0.0.1 port 544: Connection refused trying normal rsh (/usr/bin/rsh) lagrid02: Connection refused When I run it with a... (8 Replies)
Discussion started by: vishwamitra
8 Replies

3. Shell Programming and Scripting

execute remote commands with rsh

Hi, I earlier determined I cannot use FTP to execute remote commands on a server. My problem, I need to use a second server to get/put files via ftp onto my primary server and various tertiary servers. my server(A) ---> server (B) ----> server blah(c), server balh(C) I cannot directly... (1 Reply)
Discussion started by: mcclunyboy
1 Replies

4. Solaris

Unable to execute commands using rsh in Solaris 9 and 10.

Unable to execute commands using rsh in Solaris 9 and 10. When I execute this command " rsh -n 172.16.67.91 ls -l " I am getting this error message. ::ffff:172.16.67.91: Connection refused Please guide me how to enable rsh. Thanks & Regards Durgaprasad (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

5. Shell Programming and Scripting

Running RSH on the background

Hi, I am developing a script that would do a 'rsh' on a client machine. I want to invoke a script in client machine which would keep on polling data to the server. I want the rsh to return back once it invoked the script on client and the script should run on background on client. ... (2 Replies)
Discussion started by: eamani_sun
2 Replies

6. UNIX for Advanced & Expert Users

Remote commands problem using RSH & Rexec

I have enabled the RSH and Rexec command in my HP-UX server but when i try to send any command to the server it returns Execute Permission Denied except commands like ls-l C:\rsh xxx.xxx.xxx.xxx -l mpac mxpkill 12 the mxpkill command work when I log to the server using telnet with the same... (0 Replies)
Discussion started by: fhuwaidy
0 Replies

7. Shell Programming and Scripting

RSH and sending commands

Dear All, I want to rsh a machine; lets say rsh ds-00 then i want to send a couple of commands via a script to be perfomed on the remote computer for instance rsh ds-00 df -k but it is not working when i do the scripting... What can be the problem BR/asad (1 Reply)
Discussion started by: asadlone
1 Replies

8. Shell Programming and Scripting

running multiple rsh command in a script

hi scripting experts, juz wondering if it's possible to have multiple rsh command in a single script? :confused: ie: rsh -l <username> "<command>" rsh -l <username> "<command>" thanks. regards, wee :) (0 Replies)
Discussion started by: lweegp
0 Replies

9. UNIX for Advanced & Expert Users

script to kill rsh processes running for more than 10 minutes

Hi Friends, I need to write a script to kill some processes running for more than 10 minutes. Can I get some pointers on that. Thanks for ur help in Advance. Thanks&Regards, Amit (1 Reply)
Discussion started by: amitsayshii
1 Replies

10. UNIX for Dummies Questions & Answers

return codes from rsh commands...

I have a Korn shell script that executes a number of commands on a remote server. Is it possible to feed in the last exit code of the rsh commands (i.e. something like $?) to a variable within the local shell script? I tried the following: returncode=$(rsh spns31 ".... (1 Reply)
Discussion started by: bbouch
1 Replies
Login or Register to Ask a Question