From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Clar Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Strange behaviour with automatic DECterm at Startup Date: Mon, 06 May 2002 12:10:20 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3CD6568C.CFD50AE8@supelec.fr> References: <3CD232B9.17F68E1C@supelec.fr> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1020681097 28957 127.0.0.1 (6 May 2002 10:31:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 6 May 2002 10:31:37 +0000 (UTC) Cc: Daniel.Clar@supelec.fr Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 174fmL-0007Ww-00 for ; Mon, 06 May 2002 12:31:37 +0200 Original-Received: (qmail 18409 invoked by uid 5); 6 May 2002 10:11:32 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 18401 invoked from network); 6 May 2002 10:11:32 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 6 May 2002 10:11:32 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GVO0033CPN77Z@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 06 May 2002 06:11:31 -0400 (EDT) Original-Received: from supelec.supelec.fr (supelec.supelec.fr [160.228.120.192]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GVO0037MPMH6G@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 06 May 2002 06:11:06 -0400 (EDT) Original-Received: from supelec.fr (localhost [127.0.0.1]) by supelec.supelec.fr (8.10.2/jtpda-5.3.1) with ESMTP id g46ABSD211211 ; Mon, 06 May 2002 12:11:28 +0200 (MEST) Original-To: "tru64-unix-managers@ornl.gov" X-Mailer: Mozilla 4.7 [fr] (WinNT; I) X-Accept-Language: fr Xref: main.gmane.org gmane.os.tru64.managers:53 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:53 The original posting was : > Hello Managers, > > I'm not sure that it's a TRU64 Unix problem but it should be. > > My workstation is an OpenVMS workstation. At login time, I have some > tasks in the automatic startup menu and some of them are opening DECterm > windows in wich there are automatic rlogin commands on Tru64 Unix > computers. > > I've always got problems with some of them following the Tru64 Unix > version : after a fix number of seconds the Decterm is closed even if I > was typing some characters and the process running is stopped. Then I > was able to start again the same process from the Session Manager and > the window never closed, so it seems that it's not an autologout time > problem. > > Now all my Unix systems are running 5.1A and for all the systems but one > the window is closed after some 90 seconds. > > The running shell is tcsh. The .login and .cshrc files on the user > account are the same. > > Some ideas about this strange behaviour ? Thank you to Selden E Ball Jr and I join the full answer. Daniel ----------------------------- Check to make sure you don't have an "idle job killer" running on the VMS sytesm. They are sometimes confused about how to handle DECwindows. I've never seen the problem you report, but you might consder a different login method. Specifically, use rsh to run dtterm (or dxterm) on the Tru64 systems, so that the Tru64 terminal emulator opens a window on your VMS desktop. As a result, you are using a terminal emulator that is running native on the remote Unix system rather than using rsh within a VMS DECterm window. This avoids many potential terminal emulator incompatibilities. I usually use dxterm, since it is almost identical to the VMS DECterm. I use the subroutines below within my auto-login script to open either a DXterm or a DTterm window on the current X display screen. The DCL subroutines are called with p1 set to be the remote host name. e.g. $ call rlg_dxterm host.computer.domain They are spawned from a terminal window that is "never" logged out. You'll have to change how "d1" (the local display's tcp/ip domain name) is determined if you don't use Multinet. $!===================================================== $! Routine to rsh to remote unix and open DXterm window there to here $rlg_dxterm: subroutine $ wn = p1 $ def/user sys$output nl: $ sho disp/sym $ d1 = "''decw$display_node'" $ if d1 .eqs. "0" then d1 = "''f$trnlnm(""MULTINET_HOST_NAME"")'" $ d2 = "''decw$display_server'" $ d3 = "''decw$display_screen'" $ spawn/nowait/input=nl: - rsh 'p1' "/usr/bin/X11/dxterm -display ''d1':''d2'.''d3' -iconic -xrm ""*iconName:''wn'"" - -xrm ""*title:''wn'"" " $ exit $ endsubroutine $!===================================================== $!===================================================== $! Routine to rsh to remote unix and open DTterm window there to here $rlg_dtterm: subroutine $ def/user sys$output nl: $ sho disp/sym $ d1 = "''decw$display_node'" $ if d1 .eqs. "0" then d1 = "''f$trnlnm(""MULTINET_HOST_NAME"")'" $ d2 = "''decw$display_server'" $ d3 = "''decw$display_screen'" $ spawn/nowait/input=nl: - rsh 'p1' "/usr/dt/bin/dtterm -display ''d1':''d2'.''d3' -fn -dt-interface -132 -ls - -geometry 132x24 -iconic -ti vt220 -title ''p1' -name ''p1'" $ exit $ endsubroutine $!=====================================================