Skip to content

Commit

Permalink
Added obfuscation script
Browse files Browse the repository at this point in the history
  • Loading branch information
basedrhys committed Dec 13, 2019
1 parent b2dc971 commit f46650e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/obfs-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
###########################################################
INPUT_DIR=java-large
OUTPUT_DIR=java-large-test
NUM_PARTITIONS=1
NUM_THREADS=13
ARGS="-Xmx13g"

###########################################################

mkdir -p ${OUTPUT_DIR}

counter=1
while [ $counter -le $NUM_PARTITIONS ]
do
echo "Starting partition ${counter}"
echo $(date +%d-%m-%Y" "%H:%M:%S)
java ${ARGS} -jar java-tool.jar -s ${INPUT_DIR} -t ${OUTPUT_DIR} -pNum ${counter} -pTotal ${NUM_PARTITIONS} -threads ${NUM_THREADS} &>> obfs_output.txt
killall -s 9 java
((counter++))
done

echo All done

0 comments on commit f46650e

Please sign in to comment.