What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Creating a CRON job..

muffintastic

Senior Member
I would like to use this code, every 2 hours:

Code:
for line in `nvram show | grep =$ `; do var=${line%*=}; nvram unset $var; done

I would like it survive a reboot as such also, could someone help me achieve this? #noob
 
I doubt whether running that code every 2 hours would be that useful. The "empty" NVRAM variables will be created during the routers boot up sequence, not later on whilst it is running. So to me it would seem more logical to put the code in a services-start script instead.
 
You have the code.
Just type cru as it suggests and it has some guidance.


Sent from my iPhone using Tapatalk
 
Similar threads
Thread starter Title Forum Replies Date
XIYO Questions Regarding acme.sh Cron Job Setup and Directory Linking Asuswrt-Merlin 1

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top