saveyoureyes/.template.sh
2022-08-11 18:02:28 +04:00

7 lines
180 B
Bash

while true; do
sleep $SYE_TIME
ps -e | grep -E "$SYE_EXCL" >/dev/null
if [[ $SYE_EXCL == "" || $? == 1 ]]; then
nohup bash -c "$SYE_CMD" >/dev/null
fi
done