diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-21 16:27:55 +0300 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-21 16:32:47 +0300 |
| commit | c79bbdb0448501987c0c16c2877c780143156d1e (patch) | |
| tree | ff518148959a27e0efa655b3e40c4efea074a383 /scripts/read.sh | |
| parent | Write other process' memory (diff) | |
| download | linux-game-trainer-c79bbdb0448501987c0c16c2877c780143156d1e.tar.gz linux-game-trainer-c79bbdb0448501987c0c16c2877c780143156d1e.zip | |
Changes in trainer interface, bug fixes & helper scripts
Diffstat (limited to 'scripts/read.sh')
| -rw-r--r-- | scripts/read.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/read.sh b/scripts/read.sh new file mode 100644 index 0000000..38535e6 --- /dev/null +++ b/scripts/read.sh | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | if [ "$#" -ne 1 ] | ||
| 4 | then | ||
| 5 | printf "Usage: %s <tracee_pid>\n" "$0" | ||
| 6 | exit 1 | ||
| 7 | fi | ||
| 8 | |||
| 9 | scanfile=${SCANFILE:-/tmp/scanfile} | ||
| 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" | ||
