Advertisement
xamidi

m-exs-sample.sh

Mar 3rd, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.26 KB | Science | 0 0
  1. #!/bin/zsh
  2.  
  3. NOW=$(date +'%d.%m.%Y %T')
  4. echo "Run started at ${NOW}."
  5.  
  6. PMGEN='pmGenerator'
  7. #PMGEN='pmGenerator_icpx'
  8. CMDBASE="${PMGEN} -c -n -s CCCCCpqCNrNsrtCCtpCsp"
  9. #EXTBASE=""
  10. EXTBASE="-e 1"
  11. DEFBASE=""
  12. #DEFBASE="-d" # for default system only
  13. HASH='478804cd4793bc7f87041d99326aff4595662146d8a68175dda22bed'
  14. STARTLEN=193
  15. MAXSTARTLEN=203
  16. STEP=10
  17. BOUND=15 #20
  18. INITIAL_EXTRACT=0
  19.  
  20. NEXTEXT=-1
  21. while :; do
  22.   let NEXTEXT++
  23.   if [ ! -d "data/${HASH}/extraction-${NEXTEXT}" ]; then
  24.     echo "extraction-${NEXTEXT} does not exist."
  25.     break;
  26.   fi;
  27. done
  28. echo "Next extract command base: ${CMDBASE} -e ${NEXTEXT} ${DEFBASE}"
  29.  
  30. case $INITIAL_EXTRACT in
  31.   (1)
  32.   ./${CMDBASE} ${EXTBASE} ${DEFBASE} --extract -l ${BOUND} -d
  33.   EXTBASE="-e ${NEXTEXT}"
  34.   let NEXTEXT++
  35.   ;;
  36.   (0)
  37.   ;;
  38. esac
  39.  
  40. let STARTLEN+=${STEP};
  41. while [ ${STARTLEN} -le ${MAXSTARTLEN} ]; do
  42.   ./${CMDBASE} ${EXTBASE} ${DEFBASE} -g ${STARTLEN} -u
  43. # ./${CMDBASE} ${EXTBASE} ${DEFBASE} --variate 1 -s --extract -t 10000 -s
  44.   ./${CMDBASE} ${EXTBASE} ${DEFBASE} --extract -l ${BOUND} -d
  45.   EXTBASE="-e ${NEXTEXT}"
  46.   ./${CMDBASE} ${EXTBASE} ${DEFBASE} --variate 1 -s --extract -t 10000 -s
  47.   let NEXTEXT++
  48.   let STARTLEN+=${STEP};
  49. done
  50. NOW=$(date +'%d.%m.%Y %T')
  51. echo "Run completed at ${NOW}."
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement