Date: Thu, 10 Sep 1998 16:00:22 -0500 From: Dan Nelson <dnelson@emsphone.com> To: "Graves, Scott " <Scott_Graves@sealand.com>, "'questions@freebsd.org'" <questions@FreeBSD.ORG> Subject: Re: stty status '^T' line in /etc/rc Message-ID: <19980910160022.A24519@emsphone.com> In-Reply-To: <E00F8BB67E78D011965C00805F9AC8010253DB0E@sdal010exch.sealand.csx.com>; from "Graves, Scott " on Thu Sep 10 14:30:10 GMT 1998 References: <E00F8BB67E78D011965C00805F9AC8010253DB0E@sdal010exch.sealand.csx.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980910160022.A24519>