Created
April 30, 2021 09:38
-
-
Save FleXoft/105980311736d26362c50b0aa29e204a to your computer and use it in GitHub Desktop.
Db2 delete archive logs in every 10 minutes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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