SUMMARY: Strange rsh problem

From: Eskil Swahn (Eskil.Swahn@LDC.lu.se)
Date: Thu Jan 16 2003 - 18:33:13 EST


Thanks to those who replied (really really quickly)

Dr Blinn was quick to point out what I had missed and provide a solution:

I should add a 'nohup' and send the start script to the background to avoid
the rsh connection to hang at the end of the startup. The main difference
being that I want to keep the started processes alive while the stop script
automatically dies by itself.

/Eskil
 

 
Eskil Swahn
 
LDC, Lund University
 
Eskil.Swahn@LDC.lu.se
http://www.ldc.lu.se/
Phone +46 46 222 49 86
Fax +46 46 13 82 25

 
-----Original Message-----
From: Eskil Swahn [mailto:Eskil.Swahn@LDC.lu.se]
Sent: den 16 januari 2003 23:59
To: 'Tru64'
Subject: Strange rsh problem

Hi!
 
I am having a really confusing problem here with rsh. We have a DS25 cluster
V5.1A PK3 that we run Oracle Apps 11i on. Oracle has supplied a couple of
scripts to start/stop the different application servers involved and two
wrapper scripts that execute all the individual scripts to do a complete
startup and complete shutdown of all the Reports, Forms, Web servers etc
involved. Both of these wrapper scripts work perfectly when executed from
the normal prompt but when I try to do this through ‘rsh’ (in the backup
script most needed), one of the scripts hangs and never releases the prompt
back so my backup script hangs at the very end.
 
The scripts look like this in the interesting parts:
 
for exe in `echo /usr/users/oaa/applmgr/edancomn/admin/scripts/xxxx/*ctl.sh`
do
  printf "Stopping $exe\n\n";
  $exe start $unpw
done
 
A ‘diff’ between the working script (the stop script) and the none working
script (start) show only this (that is of interest as far as I can see, the
other stuff is just comments):
 
55,56c58,59
<   printf "Stopping $exe\n\n";
<   $exe stop $unpw

---
>   printf "Starting $exe\n\n";
>   $exe start $unpw
 
I executed it like this (as root) ‘su - applmgr –c “rsh othernode start.sh
userid/passwd”’
 
Is there some known issue with ‘rsh’ that causes this problem or am I just
being haunted by an evil troll here?
 
I’ll submit this tomorrow to support but I wouldn’t mind the time at all if
I managed to solve this asap..
 
/Eskil
 
 
Eskil Swahn
 
LDC, Lund University
 
Eskil.Swahn@LDC.lu.se
http://www.ldc.lu.se/
Phone +46 46 222 49 86 
Fax +46 46 13 82 25
Bättre en tia i handen än en tjuga i foten.
  
 


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:04 EDT