Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/zsh
- NOW=$(date +'%d.%m.%Y %T')
- echo "Run started at ${NOW}."
- PMGEN='pmGenerator'
- #PMGEN='pmGenerator_icpx'
- CMDBASE="${PMGEN} -c -n -s CCCCCpqCNrNsrtCCtpCsp"
- #EXTBASE=""
- EXTBASE="-e 1"
- DEFBASE=""
- #DEFBASE="-d" # for default system only
- HASH='478804cd4793bc7f87041d99326aff4595662146d8a68175dda22bed'
- STARTLEN=193
- MAXSTARTLEN=203
- STEP=10
- BOUND=15 #20
- INITIAL_EXTRACT=0
- NEXTEXT=-1
- while :; do
- let NEXTEXT++
- if [ ! -d "data/${HASH}/extraction-${NEXTEXT}" ]; then
- echo "extraction-${NEXTEXT} does not exist."
- break;
- fi;
- done
- echo "Next extract command base: ${CMDBASE} -e ${NEXTEXT} ${DEFBASE}"
- case $INITIAL_EXTRACT in
- (1)
- ./${CMDBASE} ${EXTBASE} ${DEFBASE} --extract -l ${BOUND} -d
- EXTBASE="-e ${NEXTEXT}"
- let NEXTEXT++
- ;;
- (0)
- ;;
- esac
- let STARTLEN+=${STEP};
- while [ ${STARTLEN} -le ${MAXSTARTLEN} ]; do
- ./${CMDBASE} ${EXTBASE} ${DEFBASE} -g ${STARTLEN} -u
- # ./${CMDBASE} ${EXTBASE} ${DEFBASE} --variate 1 -s --extract -t 10000 -s
- ./${CMDBASE} ${EXTBASE} ${DEFBASE} --extract -l ${BOUND} -d
- EXTBASE="-e ${NEXTEXT}"
- ./${CMDBASE} ${EXTBASE} ${DEFBASE} --variate 1 -s --extract -t 10000 -s
- let NEXTEXT++
- let STARTLEN+=${STEP};
- done
- NOW=$(date +'%d.%m.%Y %T')
- echo "Run completed at ${NOW}."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement