rsh doesn't return control - WHY?

rsh doesn't return control - WHY?

Post by Michael O'Sulliva » Fri, 31 Mar 2000 04:00:00

PreScript - I can work around this problem, all I really want to know is why
it happens.

Hi all,

I'm just about to check the FAQ but kind of need to know fairly quickly.

Anyway,  I'm writing a menu driven script that does lots of nice things.
One of the things it does is launch web servers for different users.  I
prompt for the username and then use rsh to remote shell to the web server
to start the daemon.

The command line looks like this:

rsh web_server "/opt/suitespot/https-xxxxx-blah/start"

The trouble is that if I run the command while on the server web_server I
don't get the prompt back.  Before you go at me, I know that I don't need to
rsh to the machine I am already on, but I was just wondering why the process
does not return control to my shell.  A truss on the rsh process says that
it is polling.

It's an Ultra10, Solaris 2.6, patched recently, web server is Netscape
Enterprise Server

Thanks guys,



rsh doesn't return control - WHY?

Post by osu.. » Sat, 01 Apr 2000 04:00:00

For the record I have already done the following:
1. used rsh -n
2. made a script on the remote machine and invoked it using rsh
3. tried putting the script in the background
Maybe the problem lies with the application I'm trying to run. I'll
investigate that possibility also.
Many thanks, Michael.

Sent via
Before you buy.


1. Why doesn't rsh return?

Hello.  I am trying to automate some procedures using
shell scripts and I have run into a minor nuisance.
When I start a process on a remote machine using:

  rsh <hostname> "<command> &"

the remote process starts up correctly, but the
rsh doesn't return until the process completes.  
Why doesn't rsh return immediately after starting
the remote process?  Is there any way to make it
behave in that manner?

I know that I could also fork the rsh process using:

  rsh <hostname> "exec <command>" &

but I would like to wait to make sure the remote
process has started up before continuing without
resorting to a kludge like using sleep.

I am using tcsh 6.06 as my login shell.

Thanks in advance!


2. What's the meaning of attach and hunt?

3. Rdump say 'permission denied' rsh doesn't, why?

4. Solaris 2.2: Can't write to calendar (cm)

5. Kongueror doesn't return control to my bash script???

6. Millenium problem

7. why doesn't my rsh work

8. Speeding up booting?

9. why rsh doesn't work ???

10. why does man return 0 even if it doesn't find the manpage!!!???

11. Why doesn't "ps -ef" ever return?

12. why doesn't return write() EPIPE ?

13. Why doesn't have return value in send library(socket)?