The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-08-2006
Mace Mace is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 10
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.
  #2 (permalink)  
Old 06-10-2006
mgerdts mgerdts is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 8
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.
  #3 (permalink)  
Old 06-12-2006
Mace Mace is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 10
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!
  #4 (permalink)  
Old 06-12-2006
Mace Mace is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 10
Wink

when I say another plan needs to be formulated, I'm actually open to suggestions!!
  #5 (permalink)  
Old 06-12-2006
mgerdts mgerdts is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 8
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0