LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] set watch(..) under bash

[ILUG] set watch(..) under bash

lbedford at wbtsystems.com lbedford at wbtsystems.com
Tue May 16 17:36:24 IST 2000


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.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell