aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/run.sh b/run.sh
index 6de5897..c0d4886 100755
--- a/run.sh
+++ b/run.sh
@@ -6,5 +6,18 @@ then
6 exit 1 6 exit 1
7fi 7fi
8 8
9gnome-terminal -- bash ./scripts/scan.sh "$1" 9if [ ! $(cat /proc/sys/kernel/yama/ptrace_scope) -eq 0 ]
10gnome-terminal -- bash ./scripts/read.sh "$1" 10then
11 echo "ptrace_scope is not set to 0 and ptrace attach will subsequently fail
12 To solve this issue you can run the following command:
13
14 echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope"
15 exit 1
16fi
17
18TERM_EMU=gnome-terminal
19
20# The syntax for the startup command may differ per terminal emulator.
21make && \
22${TERM_EMU} -- bash ./scripts/scan.sh "$1" && \
23${TERM_EMU} -- bash ./scripts/read.sh "$1"