On Tue, May 16, 2000 at 06:30:02PM +0200, McDaid, Aaron wrote:
> This is overkill but!
>> #!/bin/bash
> (who|cut -d " " -f1|sort|uniq)>new
> while (true) do
> cp new old
> (who|cut -d " " -f1|sort|uniq)>new
> diff new old
> done
Ouch, you _really_ want to put a sleep 30 or 60 in after the while..
that's just going to loop running stuff, and send your load average
skywards..
L.
--
Liam Bedford | What we've got here is, failure to
System Administrator | communicate. Some man you just can't
WBT Systems, Block 2, | reach... so you get what we had
Harcourt Centre, Harcourt St. | here last week, which is the way
01-4170100 | he wants it.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!