This widget could not be displayed.
This widget could not be displayed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Cron Job to Run on a Schedule

kalybg
Star I

Hello,
I want to set the router to run the following task every hour:
- sync && echo 3 > /proc/sys/vm/drop_caches
I tried this but it doesn't work:
- cru a cache 0 * * * * sync && echo 3 > /proc/sys/vm/drop_caches

P.S. The problem is that I use an FTP server and out of 512 RAM it leaves me with 36 RAM. When I use the command it returns 256 free RAM again. The router is a TUF-AX3000 V2

Please, if someone can help me step by step to do it.
Thanks in advance

1 REPLY 1

kalybg
Star I

I managed to fix it:
cru a ClearCache "0 * * * * sync && echo 3 > /proc/sys/vm/drop_caches"
cru l
chmod +x /jffs/

Works great.
Thanks to DeepSeek 🙂