callgraph/sysdig.sh

6 lines
108 B
Bash

#!/usr/bin/env bash -e
t="$(mktemp)"; f() {
rm "$t"
}
trap f EXIT; cat > "$t"; sudo sysdig -N -s0 -c "$t"