Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!beta!hc!ames!ptsfa!maxepr!ken From: ken@maxepr.UUCP (Ken Brassler) Newsgroups: comp.sys.att Subject: Re: infinite regress Message-ID: <488@maxepr.UUCP> Date: Fri, 16-Oct-87 15:35:47 EDT Article-I.D.: maxepr.488 Posted: Fri Oct 16 15:35:47 1987 Date-Received: Sat, 17-Oct-87 23:23:56 EDT References: <3269@sol.ARPA> Reply-To: ken@maxepr.UUCP (Ken Brassler) Organization: Brassler Engineering Co., Mill Valley, CA Lines: 37 In article <3269@sol.ARPA> brown@cs.rochester.edu (Chris Brown) writes: >How can one escape from an infinitely recursive ksh function... >..... if one isn't in ua? Easy - create a second (or more) virtual terminal that you can switch to via the suspd key. First, ignore all warnings that you shouldn't do this, then edit /etc/inittab and add a line which spawns another login shell. Here is a fragment from my inittab: : REPEAT: DO NOT EDIT THIS FILE!!! IT IS PROGRAM-MODIFIED!!!!! is:2:initdefault: vid:2:respawn:/etc/getty window 9600 vi1:2:respawn:/etc/getty window 9600 Add this last line, indented one space as shown. Note that it is named 'vi1', not 'vid'. ( you need some unique name) You can add more lines labeled vi2, vi3 etc, for more virtual terminals, limited by the number of window drivers available, but 2 or 3 total is plenty. Then do "telinit q", which tells init to re-examine this file. Virtual terminals have many more uses than just killing a runaway process - try it, you'll like it. Just hit the suspd key to get the window select menu. If you are a UA person, you don't need to do this, and it might screw things up. However, I have 3 virtual terminals, with the UA running in one of them, which is a convenient way to use the UA on occasion. -- Ken Brassler {ihnp4|qantel|pyramid|lll-crg}!ptsfa!maxepr!ken ....ethos!gladys!ptsfa!maxepr!ken