<div dir="ltr">One note is that you'll want to use /dev/urandom instead of /dev/random as you're not doing cryptography and you'll quickly run out of entropy in /dev/random.<div><br></div><div>Brian Oborn</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 7, 2016 at 12:19 PM, Darren Wise <span dir="ltr"><<a href="mailto:darren@wisecorp.co.uk" target="_blank">darren@wisecorp.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
    
<div>Heya folks, </div><div><br></div><div>This may seem really simple to some and it is fairly simple from the terminal using bash of generation and sorting (examples below)</div><div><br></div><div>What I would like to do, to get started with making a program to run in MPI on my cluster.. I thought of a fairly simple bash script and this works fine for a single machine but what is the best way to go around it or converting this simple notion in to an MPI runable command.</div><div><br></div><div>Generates random strings of chars:</div><div>$ tr -cd '[upper:]' < /dev/random | fold -w9 | head -c${1:-1000} | tee somefile.txt</div><div><br></div><div>Removes duplicate lines:</div><div>$ sort filename.txt | uniq</div><div><br></div><div>This is fine for generation as I mention for a single machine, but what's the best way to turn this around and use MPI with a shared NFS mounted filesystem..</div><div><br></div><div>While this is an example im going to generate a bash script to allow me to generate every possible permutation of a desired string length along with types of chars a-z, A-Z, 0-9 along with symbols..</div><div><br></div><div>So any advice is welcome really and it's just an educational way for me to transpire into generating code that can be used within my small beowulf.</div><div><br></div><div id="m_-7438642257672050406composer_signature"><div><div>> Kind regards,<br>> Darren Wise Esq.</div><div>><br>> <a href="http://www.wisecorp.co.uk" target="_blank">www.wisecorp.co.uk</a></div><div>> <a href="http://www.wisecorp.co.uk/babywise" target="_blank">www.wisecorp.co.uk/babywise</a><br>> <a href="http://www.darrenwise.co.uk" target="_blank">www.darrenwise.co.uk</a></div></div></div></div><br>______________________________<wbr>_________________<br>
Beowulf mailing list, <a href="mailto:Beowulf@beowulf.org">Beowulf@beowulf.org</a> sponsored by Penguin Computing<br>
To change your subscription (digest mode or unsubscribe) visit <a href="http://www.beowulf.org/mailman/listinfo/beowulf" rel="noreferrer" target="_blank">http://www.beowulf.org/<wbr>mailman/listinfo/beowulf</a><br>
<br></blockquote></div><br></div>