Create a Cron Job to Run on a Schedule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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 🙂
