rsh does not return: rsh -n spica /etc/init.d/autofs start ?

rsh does not return: rsh -n spica /etc/init.d/autofs start ?

Post by Michael Wa » Sat, 18 Apr 1998 04:00:00



I run /etc/init.d/autofs start on spica from a remote system with
the command:

# rsh -n spica.ibk.ml.com /etc/init.d/autofs start

I can verify that the command has been run on spica but the rsh
process does not return half of the times. What is the problem?
It depends what you run,

# rsh -n spica.ibk.ml.com /etc/init.d/autofs stop

always returns and

# rsh -n spica.ibk.ml.com w

always returns.

 
 
 

rsh does not return: rsh -n spica /etc/init.d/autofs start ?

Post by Neil Ricke » Sat, 18 Apr 1998 04:00:00



>I run /etc/init.d/autofs start on spica from a remote system with
>the command:
># rsh -n spica.ibk.ml.com /etc/init.d/autofs start
>I can verify that the command has been run on spica but the rsh
>process does not return half of the times. What is the problem?

'rsh' does not terminate until the socket closes.  Some of the
processes started might be using the socket as stdin/stdout.

Try:

 rsh -n spica.ibk.ml.com "/etc/init.d/autofs start > /dev/null </dev/null 2>&1"

 
 
 

rsh does not return: rsh -n spica /etc/init.d/autofs start ?

Post by Michael Wa » Sat, 18 Apr 1998 04:00:00


This does not return:

Quote:># rsh -n spica.ibk.ml.com /etc/init.d/autofs start

This does:

Quote:># rsh -n spica.ibk.ml.com "/etc/init.d/autofs start < /dev/null"

I do not know why, do you?
 
 
 

rsh does not return: rsh -n spica /etc/init.d/autofs start ?

Post by John F Ca » Sat, 18 Apr 1998 04:00:00




># rsh -n spica.ibk.ml.com /etc/init.d/autofs start

>I can verify that the command has been run on spica but the rsh
>process does not return half of the times. What is the problem?

A subprocess of the rsh still has a file descriptor open.  rsh does not
return until it sees EOF on remote stdout and stderr.  This may be a
minor bug in the automounter.  To work around the problem try redirecting
output to /dev/null on the remote system,
        rsh host -n cmd ">" /dev/null "2>&1"

--

 
 
 

1. /etc/init.d/autofs start error, pls help!

Dear all,

Yesterday, I installed Netscape 7 patch for Solaris 8(x86) and
Recommended & Security Patch Clusters for Solaris (May 1, 2003).

After that, when I reboot and restart automounter, I got following
messages:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
bash-2.03# /etc/init.d/autofs start
ld.so.1: /usr/lib/autofs/automountd: fatal: relocation error: file
/usr/lib/sldaputil.so.5: symbol str2hostent: referenced symbol not
found
Killed
bash-2.03# ld.so.1: /usr/sbin/automount: fatal: relocation error: file
/usr/lib/sldaputil.so.5: symbol str2hostent: referenced symbol not
found
Killed
#
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

What is the problem?? I need to remove all Netscape 7 patch and
Recommended & Security Patch Clusters for Solaris ??
If yes, how to remove it?

Or, I need to reinstall my Solaris 8(x86)??

Pls help me

thanks!

2. Linux for Alphas (was Re: OSes for Alphas)

3. error code not return by "exec rsh"

4. Good Font Installer (Was:Re: Linux crappy fonts again. Distribution reveiws.

5. TCP Wrapper / rsh problem (rsh hangs)

6. Mapping Win2000 drive on linux box with Samba

7. rsh localhost works, rsh by name doesn't

8. Problems when exiting X-Win PART II..

9. How to tell difference between rsh and rsh command

10. rsh - getting the status of an rsh'd command

11. rsh works, rsh -l newusr doesnt, any ideas?

12. can rsh in but can't rsh out ???

13. /etc/passwd & /etc/group behaviour with 'rsh'