Xref: utzoo comp.sys.att:2339 comp.unix.questions:5412 Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!husc6!rutgers!mtune!mtgzz!avr From: avr@mtgzz.UUCP (XMRP50000[jcm]-a.v.reed) Newsgroups: comp.sys.att,comp.unix.questions Subject: Re: Using 'exit' in a Bourne shell script Message-ID: <3564@mtgzz.UUCP> Date: 1 Feb 88 18:22:39 GMT References: <169@mccc.UUCP> Organization: AT&T, Middletown NJ Lines: 12 Summary: Generic kill parent In article <169@mccc.UUCP>, pjh@mccc.UUCP (Peter J. Holsberg) writes: > I would like to have my users logout via a shell script "off" rather > than with ^d. Any sh script can kill its parent shell (in your case, the login shell) with kill -1 `ps -f -p $$|grep $$|cut -c16-20` This assumes the System V ps spec, but could be adapted to any UNIX(tm) system and any version of /bin/sh. Adam Reed (mtgzz!avr)