Created
March 31, 2016 18:04
-
-
Save imam-san/215de491a81bf965cce7ae490e160002 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
clear file --> clearcache.sh | |
echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared' | |
chmod 755 clearcache.sh | |
crontab -e | |
0 3 * * * /path/to/clearcache.sh | |
for 2PM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment