- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
I received script from TAC to delete temp files from the tmp directory , but the script runs forever and it does not delete the files .
I am not sure if the script is correct .Can anyone check this script if it is correct?
It looks the rm-f $file is in echo
for file in *; do file_size=$(du $file | awk '{print $1}'); if [ $file_size == 0 ]; then echo "Deleting empty file $file with file size $file_size!"; echo "rm -f $file"; fi;done
hey,
Script is fine (but is incomplete, there is missing a part from the beginning), it's just returning what you need to remove - there the echo.
Not sure if that is the purpose, and you should go over the RM lines and see if you are OK to remove those files or not.
Thank you,
If you got it from TAC, please contact them again 8)
I tried to contact TAC, they do not respond.
Just want to check if the script is correct
hey,
Script is fine (but is incomplete, there is missing a part from the beginning), it's just returning what you need to remove - there the echo.
Not sure if that is the purpose, and you should go over the RM lines and see if you are OK to remove those files or not.
Thank you,
Thank you Sorin,
That is what i suspected.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 8 | |
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY