Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] random in bash [Kmail Notification]
- To: tlug@example.com
- Subject: Re: [tlug] random in bash [Kmail Notification]
- From: Antony Stace <s45652001@example.com>
- Date: Thu, 7 Mar 2002 19:15:33 +0900
- Content-transfer-encoding: 7bit
- Content-type: text/plain; charset=US-ASCII
- In-reply-to: <200203070953.g279rxl18481@example.com>
- References: <200203040828.g248Sut02499@example.com><200203070714.g277Ebl02607@example.com><200203070948.g279mMt08364@example.com><200203070953.g279rxl18481@example.com>
> > Do anyone know how to do a "random" in bash ? I guess that would be the > simpliest way to do that. very crude....but function rand { TMPFILE=/tmp/BASHRANDOMTMPFILE.$$ /usr/bin/vmstat > $TMPFILE /usr/bin/uptime >> $TMPFILE /usr/bin/free >> $TMPFILE /sbin/ifconfig >> $TMPFILE /bin/date >> $TMPFILE cksum $TMPFILE | awk '{print $1}' \rm $TMPFILE } should do all you want. apart from that write a 10 line c program, it would take about 10 lines i am guessing.
- Follow-Ups:
- Re: [tlug] random in bash [Kmail Notification]
- From: Shimpei Yamashita
- References:
- [tlug] Kmail Notification
- From: Eric O. Flores
- Re: [tlug] Kmail Notification
- From: Erwan Loisant
- Re: [tlug] Kmail Notification
- From: Eric O. Flores
- [tlug] random in bash [Kmail Notification]
- From: Erwan Loisant
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Kmail Notification
- Next by Date: Re: [tlug] A few SPAM questions...
- Previous by thread: [tlug] random in bash [Kmail Notification]
- Next by thread: Re: [tlug] random in bash [Kmail Notification]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links