Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!usc!apple!motcsd!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.sys.hp Subject: Re: Job Control (a la csh/ksh) from within C Message-ID: <16710025@hpisod2.HP.COM> Date: 5 Oct 89 00:04:32 GMT References: <1719@zen.co.uk> Organization: Hewlett Packard, Cupertino Lines: 37 > In article <1719@zen.co.uk> vic@zen.co.uk (Victor Gavin) writes: > >...my understanding of how job control works is sadly lacking. > >Can anyone point me towards a book/manual/paper which explains how to > >control jobs *properly* from within a C program? > > Well, the *proper* way to control jobs is not to fool around with > abominations like BSD job control, but to do something sensible like a > window system that lets you interact with multiple processes without > ornate kludges. However, that probably isn't what you wanted... If indeed you weren't really looking for knee-jerk pontification on something vaguely related to your question, here's an answer that is probably closer to what you wanted: See the Summer 1986 USENIX proceedings for the following paper (p. 459): A System V Compatible Implementation of 4.2BSD Job Control David C. Lennert Hewlett-Packard Company Information Technology Group This paper gives an overview of how process groups and controlling terminals are handled in System V and 4.2BSD and then discusses the effect 4.2BSD job control has on these things. A modified 4.2BSD interface is discussed which supports 4.2BSD job control functionality but in a way which allows AT&T System V compatibility. This interface has been implemented in Hewlett-Packard's [operating] system, HP-UX. In particular, see the section "6.4. HP-UX Typical Scenario" on page 472. Dave "windows: Ability to suspend and resume processes: not found" Decot decot%hpda@hplabs.hp.com