saveyoureyes/.template.sh

8 lines
180 B
Bash
Raw Normal View History

2022-08-11 17:02:28 +03:00
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