From owner-freebsd-questions Fri May 22 05:38:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA12523 for freebsd-questions-outgoing; Fri, 22 May 1998 05:38:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA12504 for ; Fri, 22 May 1998 05:38:07 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.8/8.8.8) with ESMTP id NAA18130; Fri, 22 May 1998 13:37:56 +0100 (BST) (envelope-from kpielorz@tdx.co.uk) Message-ID: <35657195.A7FA6623@tdx.co.uk> Date: Fri, 22 May 1998 13:37:41 +0100 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: Andrew Perry CC: freebsd-questions@FreeBSD.ORG Subject: Re: watch or monitor program? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrew Perry wrote: > > > > > So what exactly does it "display" when it "displays w" (content, file-attribs, > > ..) ??? > > it clears the screen and gives me the output of w (you know, who's logged > in and what are they doing) and then it refreshes the display every 2 > seconds (by default, you can change it to whatever you like) > > 9:31PM up 4 days, 10:26, 3 users, load averages: 0.13, 0.39, 0.44 > USER TTY FROM LOGIN@ IDLE WHAT > andrew p1 eric 9:29PM 0 (pine) > andrew p2 eric 9:31PM 0 w > > here's the man page if you're interested. I don't think we have anything > like it yet. I might have to try and do it myself. As a stop-gap you could try pasting the following into a file and running it... " #!/bin/sh while [ 1 ] do clear w sleep 4 done " In fact you could probably write the whole 'watch' command as a simple shell script... OK, it's not curses optimized, but it works (as a stopgap)... ;-) Regards, Karl Pielorz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message