[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

rsh remote shell problem

Posted on 2005-04-27
13
Medium Priority
?
1,103 Views
Last Modified: 2013-12-27
Hi,

We are trying to remote call shell script on server2 from server1.

rsh -l username 65.2.13.45
works

but if we pass a parameter to rsh, it hangs:
rsh -l username 65.2.13.45 test.sh

Could anyone help me diagnose? Thanks
0
Comment
Question by:ebi168
  • 6
  • 5
11 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 13880610
What does test.sh do?

What happens when you try doing

rsh -l username 65.2.13.45 ls

Why are you using rsh instead of ssh?
0
 

Author Comment

by:ebi168
ID: 13880863
rsh -l username 65.2.13.45 ls hangs and rsh -l username 65.2.13.45 /usr/bin/ls hangs too.

How do I check what shell is on each server. Thanks

0
 

Author Comment

by:ebi168
ID: 13880900
I just find out local server is csh, and remote server is ksh, but this still won't work:

rsh -l username 65.2.13.45 ksh ./usr/bin/ls
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 48

Expert Comment

by:Tintin
ID: 13880901
OK, try

rsh -l username 65.2.13.45 pwd

The reason for this, is I suspect you may have a network/firewall issue.  If the above works, the problem could be due to MTU settings.
0
 

Author Comment

by:ebi168
ID: 13880926
how would pwd differ from ls? Also it still won't work.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 13880953
I've seen similar problems before where a command that outputs a small amount of data (like pwd) will work and with longer output from a command like ls, won't work, due to MTU incompatibilities.

You still haven't explained why you are using rsh instead of ssh.  rsh is so last century.

0
 

Author Comment

by:ebi168
ID: 13880973
I seems heard that we don't have SSH.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 13881058
What Solaris version are you running?
0
 

Author Comment

by:ebi168
ID: 13881268
SunOs 5.8
0
 
LVL 48

Accepted Solution

by:
Tintin earned 2000 total points
ID: 13881306
You can install ssh from http://sunfreeware.com/

ssh is standard with Solaris 9 and above.

I really would recommend that you use ssh over rsh, as it is pretty much the standard for doing everything that people used to use rsh for in the dark old days.

Also, you have much better debugging facilities to help track down the problem if you still get the hangs.

0
 

Author Comment

by:ebi168
ID: 13887908
let me look into it.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question