Obfuscating runs: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
Megen002 (talk | contribs)
Created page with "<source lang='bash'> #!/bin/bash #SBATCH --exclusive #SBATCH --nodes=1 #SBATCH --mem=10000 #SBATCH --comment="cv testjob" #SBATCH -p student RND=`< /dev/urandom tr -dc _A-Z-a..."
 
(No difference)

Latest revision as of 00:23, 13 December 2013

<source lang='bash'>

  1. !/bin/bash
  2. SBATCH --exclusive
  3. SBATCH --nodes=1
  4. SBATCH --mem=10000
  5. SBATCH --comment="cv testjob"
  6. SBATCH -p student

RND=`< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;` ln -s `which sleep` $RND echo "Using $RND as binary name"

./$RND 10 </source>