Files
2026-05-25 15:00:33 +03:00

20 lines
283 B
Bash
Executable File

#!/bin/bash
PIPE_PATH=$1
if [ "${PIPE_PATH}" == "" ]; then
echo "There is no defined path to pipe"
exit 1
fi
echo -n sysdig_stop > ${PIPE_PATH}
cat ${PIPE_PATH}
echo -n kill > ${PIPE_PATH}
rm ${PIPE_PATH}
if [ $? -ne 0 ]; then
echo "Can't remove pipe"
exit 1
fi