What's new

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
 

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