diff options
Diffstat (limited to 'run.sh')
| -rwxr-xr-x | run.sh | 17 |
1 files changed, 15 insertions, 2 deletions
| @@ -6,5 +6,18 @@ then | |||
| 6 | exit 1 | 6 | exit 1 |
| 7 | fi | 7 | fi |
| 8 | 8 | ||
| 9 | gnome-terminal -- bash ./scripts/scan.sh "$1" | 9 | if [ ! $(cat /proc/sys/kernel/yama/ptrace_scope) -eq 0 ] |
| 10 | gnome-terminal -- bash ./scripts/read.sh "$1" | 10 | then |
| 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 | ||
| 16 | fi | ||
| 17 | |||
| 18 | TERM_EMU=gnome-terminal | ||
| 19 | |||
| 20 | # The syntax for the startup command may differ per terminal emulator. | ||
| 21 | make && \ | ||
| 22 | ${TERM_EMU} -- bash ./scripts/scan.sh "$1" && \ | ||
| 23 | ${TERM_EMU} -- bash ./scripts/read.sh "$1" | ||
