What's new

Creating a CRON job..

  • 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!

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

Latest threads

Sign Up For SNBForums Daily Digest

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