aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/read.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/read.sh')
-rw-r--r--scripts/read.sh11
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
3if [ "$#" -ne 1 ]
4then
5 printf "Usage: %s <tracee_pid>\n" "$0"
6 exit 1
7fi
8
9scanfile=${SCANFILE:-/tmp/scanfile}
10pid="$1"
11watch -d -n 1 "xargs -r -a ${scanfile} ./hack.out ${pid} read 8 > /tmp/out 2> /dev/null && pr -t -m ${scanfile} /tmp/out"