Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!hal!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery) Newsgroups: comp.unix.wizards Subject: Re: Job Control (a la csh/ksh) from within C Message-ID: <1989Oct14.014128.1249@NCoast.ORG> Date: 14 Oct 89 01:41:28 GMT References: <1719@zen.co.uk> <1989Oct3.153120.4750@utzoo.uucp> <320@sopwith.UUCP> <1989Oct6.164830.5856@utzoo.uucp> <20040@mimsy.UUCP> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery) Followup-To: comp.unix.wizards Organization: North Coast Public Access UN*X, Cleveland, OH Lines: 43 As quoted from <20040@mimsy.UUCP> by chris@mimsy.UUCP (Chris Torek): +--------------- | In article <1989Oct6.164830.5856@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) | answers: | -One tells the system to suspend it. Yes, this does require some sort of | -facility for doing so. No, it does not require mysterious signals with | -bizarre semantics, magic control characters, or any of the other sludge | -that job control brings along. You've got other windows, remember -- you | -can use one of them to request the suspension, and to fiddle with the | -process thereafter. | | How do I get the second window on my H19 here? | One of the things that bothers me about many of these fancy windowing | systems is that there is no way to dial in and use them. +--------------- Sigh. Chris, MultiView works fine over a serial port, albeit at a slight loss of speed. (I'm talking 2400 baud here, not V.32.) I suspect screen will work as well, although a curses-based windowing utility will probably be a bit more painful. Then again, watching MultiView dump core when it tries to work with a Falco 5000 isn't a whole lot of fun, either. :-( VAGUELY RELATED QUESTION: How does one go about using System V pty's accessed through the Streams clone interface? I can't quite figure out how one gets from /dev/pty to a master *and* a slave device, unless one opens /dev/pty, fstat()'s the file descriptor, and mknod()'s the slave -- which sounds uuuuuuuugly to me, requires root permissions (for the mknod), and you have to know the major number for the ttypX device. Is there in fact a relatively clean way to do this which doesn't require me to hard-code a major device number and make my program setuid, or is it as badly designed as it seems to be at first glance? Thanks in advance, ++Brandon -- Brandon S. Allbery, moderator of comp.sources.misc allbery@NCoast.ORG uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu bsa@telotech.uucp 161-7070 (MCI), ALLBERY (Delphi), B.ALLBERY (GEnie), comp-sources-misc@backbone [comp.sources.misc-related mail should go ONLY to comp-sources-misc@] *Third party vote-collection service: send mail to allbery@uunet.uu.net (ONLY)*