#!/usr/bin/env bash while true; do if python3 /cleaner.py; then touch /tmp/cleaner-last-success fi sleep 600 done