Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!bellcore!att!cbnewsh!ho5cad!wjc From: wjc@ho5cad.ATT.COM (Bill Carpenter) Newsgroups: comp.sys.att Subject: Re: layers hangs terminal Message-ID: Date: 26 Jul 89 07:19:40 GMT References: <676@msa3b.UUCP> Sender: bill@cbnewsh.ATT.COM Reply-To: wjc@ho5cad.ATT.COM (Bill Carpenter) Distribution: na Organization: AT&T Bell Laboratories Lines: 10 In article <676@msa3b.UUCP> kevin@msa3b.UUCP (Kevin P. Kleinfelter) writes: > 2) How can I tell (in a shell script) if layers is active on my tty? > (If I can set my prompt string, PS1 to say "LAYERS" I can > avoid trying to logout while layers is running.) The host software includes a command "ismpx" for just this purpose. It answers "yes" or "no". I think you can also get it to tell you via the return code. -- Bill Carpenter att!ho5cad!wjc or attmail!bill