#!/bin/bash while true; do # Your task goes here echo "Task executed at $(date)" # Sleep for 30 seconds sleep 30 done