server/configs/nsenter_process.sh

8 lines
77 B
Bash
Executable File

#!/bin/sh
PROC="$1"
shift
nsenter -t $(pgrep "$PROC" | head -1) $@
exit $?