Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!hplabs!sri-unix!fouts@orville-ec.ARPA From: fouts@orville-ec.ARPA Newsgroups: net.unix-wizards Subject: Re: Style question - how to kill process based on user name / tty? Message-ID: <12469@sri-arpa.UUCP> Date: Wed, 15-Aug-84 12:13:00 EDT Article-I.D.: sri-arpa.12469 Posted: Wed Aug 15 12:13:00 1984 Date-Received: Sat, 18-Aug-84 00:59:39 EDT Lines: 23 From: Martin FoutsDoug Gwyn says: >Let the users kill off their own bloody processes. UNIX is not >supposed to require operators. It is true that many UNIX user's assume the philosopy that the machines are hands-on and without operators. However, this isn't always possible, and as UNIX becomes used on larger systems, more cases of situations requiring operator assistance will occure. Given that I will require my operators to perform functions like killing processes running on a given tty, I would like that function to be as easy and error free as possible. Let me reword the question: Within a running C program, I have available to me a username and tty for a process. What is the cleanest way to determine the process number? ----------