Xref: utzoo comp.sys.att:2385 comp.unix.questions:5440 Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!umd5!uvaarpa!mcnc!ncsuvx!ncsugn!emigh From: emigh@ncsugn.ncsu.edu (Ted H. Emigh) Newsgroups: comp.sys.att,comp.unix.questions Subject: Re: Using 'exit' in a Bourne shell script Message-ID: <2871@ncsugn.ncsu.edu> Date: 4 Feb 88 14:45:31 GMT References: <3564@mtgzz.UUCP> <144@flnexus.ATT.COM> Reply-To: emigh@ncsugn.UUCP (Ted H. Emigh) Organization: Genetics, North Carolina State University, Raleigh, NC Lines: 23 In article <144@flnexus.ATT.COM> heff@flnexus.ATT.COM (Paul K Heffner) writes: > 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. >The command: >stty 0 >sets your baud rate to zero, forces a hangup which causes SIGHUP to >be sent to all correspondent processes thereby 86'ing them. This >has been used with nominal success in some of the 'bye' routines >on our systems here. Of course, this will only work if you want them to be disconnected, rather than merely logout. In particular, if you have people using su, they may not want to be disconnected. -- Ted H. Emigh, Dept. Genetics and Statistics, NCSU, Raleigh, NC uucp: mcnc!ncsuvx!ncsugn!emigh internet: emigh%ncsugn.ncsu.edu BITNET: NEMIGH@TUCC @ncsuvx.ncsu.edu:emigh@ncsugn.ncsu.edu