![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Connection refused | Dudu1984 | IP Networking | 1 | 06-04-2008 06:04 PM |
| Send email with attachement-Getting connection refused by domain | samuelc | UNIX for Dummies Questions & Answers | 1 | 02-08-2008 12:25 PM |
| Connection refused to ftp from a unix server to a windows pc | alexcol | Shell Programming and Scripting | 1 | 06-21-2007 12:35 PM |
| telnet connection refused | printrick | SCO | 2 | 01-11-2006 04:38 PM |
| Connection refused from pop server | bluehell | IP Networking | 2 | 06-20-2003 10:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
rsh problem connection refused
I'm trying to use rsh command to read a variable on a remote machine. I can rlogin with no problem. If I rsh HOST I also get connection like with rlogin. There is no need for passwords. But when I rsh HOST COMMAND it waits 30 seconds then gives me a connection refused error message. Any ideas?
Thanks. |
|
||||
|
When you use "rsh hostname" (no command) it talks to the rlogin daemon (port 513). When you use "rsh hostname command", it talks to the rshd daemon (port 514). My guess is that you need to uncomment the "shell" line from /etc/inetd.conf and kill -HUP inetd.
|
|
||||
|
Ahh....that could be a problem. The remote machine i'm trying to access isn't a computer as such but a VME rack. I doubt I'll be able to modify anything on it. I'm trying to read a variable from it and I thought rsh would be the best way to go but I guess another plan will need to be formulated!
|
|
||||
|
Expect may be your friend. It would allow you to write a script that interacts with a tty, thus allowing the use of rlogin. Although expect was originally part of Tcl, there are is also an expect Perl module and likely other languages too.
A good starting point is http://en.wikipedia.org/wiki/Expect |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|