Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Db2 delete archive logs in every 10 minutes
while :; do find /tsmarchlog/tsminst1/TSMDB1/NODE0000/LOGSTREAM0000/C0000001/ -name '*.LOG' -mmin +1 -exec echo "{}" \; -exec rm -rf {} \; ; date; echo "Sleeping..."; sleep 600; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment