Re: Signature

Ivan Popovski <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
On Fri, Feb 22, 2008 at 01:31:43PM +0100, Ivan Popovski wrote:
> #!/bin/bash
> 
> y=$[ $RANDOM % $(tail -1 .sig) ]
> sed -n /^"$y"$/,/^"$[ $y+1 ]"$/p .sig | egrep -v -e '^[[:digit:]]+$'

Huh ok found anomaly here. RANDOM is acting silly here cause it gives
same number (same signature) in whole slrn session (you must exit slrn
if you want to get other signature lol). You should think of other
way to get random number i guess :) or somehow force RANDOM to change
values every time you try to post :) 

Now i dont really have time to play anymore :)

Bye

-- 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.