Article View: mod.os.unix
Article #22problem with controlling terminals in 4.2/4.3
From: usenet
Date: Fri, 13 Mar 1987 15:11
Date: Fri, 13 Mar 1987 15:11
26 lines
1863 bytes
1863 bytes
I am trying to associate a controlling terminal with a detached process. To be exact, I want to run a modified version of script (/usr/ucb/script) via an rsh(1) link, in order to have the process that I run have a controlling terminal. The problem is that when I run script, or the modified version (modified only to run a different program), via rsh, ps shows that the remote program and the script both have "?" for controlling terminal. I realize that the manual (tty(4)) ways that if a process has no controlling teminal, that it can open a /dev/tty?? file and it will become the controlling terminal for that process. Nevertheless, it looks like that doesn't work with rsh-ed programs. Anybody have any ideas?? I am trying to get xterm(1), from the X V10R4 distribution, to work via rsh, and xterm seems to need a controlling terminal in order to work correctly (otherwise, when the cshell that it created exits, the xterm hangs as a zombie, I think, and the network connection is left open). If anybody has any idea what is going wrong, semd me mail, since this is probably not of great importance to most people on the net. --chet-- In Real Life: Chet Murthy ARPA: murthy@svax.cs.cornell.edu SnailMail: Chet Murthy Gaslight Village Apts 21-B Uptown Road Ithaca, NY 14850 MaBellNet: (607)-257-5709
Technical Details
Message-ID:
<231@mcdchg.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!mcdchg!usenetShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!mcdchg!usenet From: usenet@mcdchg.UUCP Newsgroups: mod.os.unix Subject: problem with controlling terminals in 4.2/4.3 Message-ID: <231@mcdchg.UUCP> Date: Fri, 13-Mar-87 10:11:29 EST Article-I.D.: mcdchg.231 Posted: Fri Mar 13 10:11:29 1987 Date-Received: Sat, 14-Mar-87 07:05:51 EST Sender: usenet@mcdchg.UUCP Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 26 Approved: usenet@falkor.UUCP