From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eskil Swahn Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Strange rsh problem Date: Fri, 17 Jan 2003 00:33:13 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <004501c2bdb7$a395e610$e9d543d5@starfleet> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1042759942 6009 80.91.224.249 (16 Jan 2003 23:32:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2003 23:32:22 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18ZJUh-0001YS-00 for ; Fri, 17 Jan 2003 00:32:19 +0100 Original-Received: (qmail 3850 invoked by uid 5); 16 Jan 2003 23:33:31 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3841 invoked by uid 49493); 16 Jan 2003 23:33:31 -0000 Original-Received: from Eskil.Swahn@LDC.lu.se by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(1.8/5.0):. Processed in 0.412266 secs); 16 Jan 2003 23:33:31 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 16 Jan 2003 23:33:31 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8T00AORYRRRP@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT Tru64-UNIX-Managers@ornl.gov) ; Thu, 16 Jan 2003 18:33:30 -0500 (EST) Original-Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8T00FD9YRF1V@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT Tru64-UNIX-Managers@ornl.gov) ; Thu, 16 Jan 2003 18:33:19 -0500 (EST) Original-Received: from d1o985.telia.com (d1o985.telia.com [213.65.16.241]) by mailc.telia.com (8.12.5/8.12.5) with ESMTP id h0GNXEO1021880 for ; Fri, 17 Jan 2003 00:33:14 +0100 (CET) Original-Received: from starfleet (h233n2fls31o985.telia.com [213.67.213.233]) by d1o985.telia.com (8.10.2/8.10.1) with ESMTP id h0GNXES00725 for ; Fri, 17 Jan 2003 00:33:14 +0100 (CET) Original-To: 'Tru64' X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Original-Recipient: Xref: main.gmane.org gmane.os.tru64.managers:2992 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2992 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 =A0 =A0 Eskil Swahn =A0 LDC, Lund University =A0 Eskil.Swahn@LDC.lu.se http://www.ldc.lu.se/ Phone +46 46 222 49 86=20 Fax +46 46 13 82 25 =20 -----Original Message----- From: Eskil Swahn [mailto:Eskil.Swahn@LDC.lu.se]=20 Sent: den 16 januari 2003 23:59 To: 'Tru64' Subject: Strange rsh problem Hi! =A0 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 =91rsh=92 (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. =A0 The scripts look like this in the interesting parts: =A0 for exe in `echo = /usr/users/oaa/applmgr/edancomn/admin/scripts/xxxx/*ctl.sh` do =A0 printf "Stopping $exe\n\n"; =A0 $exe start $unpw done =A0 A =91diff=92 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): =A0 55,56c58,59 <=A0=A0 printf "Stopping $exe\n\n"; <=A0=A0 $exe stop $unpw --- >=A0=A0 printf "Starting $exe\n\n"; >=A0=A0 $exe start $unpw =A0 I executed it like this (as root) =91su - applmgr =96c =93rsh othernode = start.sh userid/passwd=94=92 =A0 Is there some known issue with =91rsh=92 that causes this problem or am = I just being haunted by an evil troll here? =A0 I=92ll submit this tomorrow to support but I wouldn=92t mind the time at = all if I managed to solve this asap.. =A0 /Eskil =A0 =A0 Eskil Swahn =A0 LDC, Lund University =A0 Eskil.Swahn@LDC.lu.se http://www.ldc.lu.se/ Phone +46 46 222 49 86=20 Fax +46 46 13 82 25 B=E4ttre en tia i handen =E4n en tjuga i foten. =A0=A0 =A0