diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/read.sh | 2 | ||||
| -rw-r--r-- | scripts/scan.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/read.sh b/scripts/read.sh index 38535e6..f26ba11 100644 --- a/scripts/read.sh +++ b/scripts/read.sh | |||
| @@ -8,4 +8,4 @@ fi | |||
| 8 | 8 | ||
| 9 | scanfile=${SCANFILE:-/tmp/scanfile} | 9 | scanfile=${SCANFILE:-/tmp/scanfile} |
| 10 | pid="$1" | 10 | pid="$1" |
| 11 | watch -d -n 1 "xargs -r -a ${scanfile} ./hack.out ${pid} read 8 > /tmp/out 2> /dev/null && pr -t -m ${scanfile} /tmp/out" | 11 | watch -d -n 1 "xargs -r -a ${scanfile} ./trainer ${pid} read 8 > /tmp/out 2> /dev/null && pr -t -m ${scanfile} /tmp/out" |
diff --git a/scripts/scan.sh b/scripts/scan.sh index c700011..bb4f77c 100644 --- a/scripts/scan.sh +++ b/scripts/scan.sh | |||
| @@ -25,7 +25,7 @@ while true | |||
| 25 | do | 25 | do |
| 26 | read -p "Scan pattern (hex): " pattern | 26 | read -p "Scan pattern (hex): " pattern |
| 27 | newscan=$(mktemp) | 27 | newscan=$(mktemp) |
| 28 | ./hack.out ${pid} scan ${pattern} > ${newscan} 2> /dev/null | 28 | ./trainer ${pid} scan ${pattern} > ${newscan} 2> /dev/null |
| 29 | if [ ! -f ${scanfile} ] | 29 | if [ ! -f ${scanfile} ] |
| 30 | then | 30 | then |
| 31 | mv ${newscan} ${scanfile} | 31 | mv ${newscan} ${scanfile} |
