- Products
- Learn
- Local User Groups
- Partners
- More
Check Point Jump-Start Online Training
Now Available on CheckMates for Beginners!
Welcome to Maestro Masters!
Talk to Masters, Engage with Masters, Be a Maestro Master!
ZTNA Buyer’s Guide
Zero Trust essentials for your most valuable assets
The SMB Cyber Master
Boost your knowledge on Quantum Spark SMB gateways!
Check Point's Cyber Park is Now Open
Let the Games Begin!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
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 😎
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.
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY