Obfuscating runs

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