What's new

Beginning cron jobs

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

argh

New Around Here
I've been sitting on this one for a while and finally decided to tackle it (first time dealing with scripts). What I'd like to achieve is a scheduled bandwidth limit on all ip addresses in the DHCP range (with inspiration from: https://www.snbforums.com/threads/scheduled-qos-settings-or-bandwidth-limit.46319/)

I'm connected via SSH and in the /jffs/scripts/ folder. It appears to be empty using cru l or ls -a. Am I supposed to at least have a services-start file to edit?
 
The scripts folder (/jffs/scripts) is normally empty. Not unless YOU create a file there, or perhaps some AddOn you've enabled has added some scripts. It's intended for situations where you want the router to call your script in response to various system events (e.g., initialization of the firewall). If you're NOT creating a script for that purpose, it could be installed anywhere you like, either some other folder in /jffs, or even a USB drive.

The cru command is for managing scheduled tasks. It has nothing to do w/ whether there are or aren't any scripts in /jffs/scripts. You can schedule a script for execution wherever it happens to reside, just so long as it's accessible at the sceduled time.
 
You're now into the specific of your scripting, and I haven't a clue when it comes to QoS since I don't ever use it. I was only responding your direct questions. At this point, you'd probably be better off creating a new thread w/ a more relevant title to draw the attention of QoS experts.
 

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