Obfuscating runs

From HPCwiki
Revision as of 00:23, 13 December 2013 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<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>