Obfuscating runs

From HPCwiki
Revision as of 01: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
#!/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-z-0-9 | head -c${1:-32};echo;`
ln -s `which sleep` $RND
echo "Using $RND as binary name"

./$RND 10