From owner-freebsd-questions Thu Sep 10 14:00:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA25085 for freebsd-questions-outgoing; Thu, 10 Sep 1998 14:00:41 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA25078 for ; Thu, 10 Sep 1998 14:00:38 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id QAA24672; Thu, 10 Sep 1998 16:00:22 -0500 (CDT) Message-ID: <19980910160022.A24519@emsphone.com> Date: Thu, 10 Sep 1998 16:00:22 -0500 From: Dan Nelson To: "Graves, Scott " , "'questions@freebsd.org'" Subject: Re: stty status '^T' line in /etc/rc References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.2i In-Reply-To: ; from "Graves, Scott " on Thu Sep 10 14:30:10 GMT 1998 X-OS: FreeBSD 2.2.7-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Sep 10), Graves, Scott said: > Why is the command stty status '^T' used in rc??? I know that is > sets status to the control sequence ^T, but what is this used for??? > Basically, what does it do??? It binds ^T to the "SIGINFO" signal. Programs are free to trap this and print status info. For example, the "dd" command prints out the current block numbers, plus throughpus stats, every time you hit ^T. The kernel also traps SIGINFO and prints out the following line: load: 1.30 cmd: dd 24578 [running] 0.12u 1.05s 6% 112k , with loadavg, current running command, that process's PID, user and system time used so far, current CPU usage, and incore process size. It's a feature I wish other Unixes had. Dec's OSF/1 has "stty status ^T" and "stty -nokerninfo", but they don't seem to do anything. Linux and SCO simply don't have it. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message