Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler Custom Command not accepting certain characters #427

Open
scholtron opened this issue Dec 8, 2018 · 0 comments
Open

Scheduler Custom Command not accepting certain characters #427

scholtron opened this issue Dec 8, 2018 · 0 comments

Comments

@scholtron
Copy link

scholtron commented Dec 8, 2018

I'm attempting to backup the configuration of my router via the Scheduler using the Custom Command function.

To replicate the issue go to Administration > Scheduler, enable Custom 1 and paste the following into the Command text box and hit save:
nvram save /tmp/router_config_$(date "+%Y-%m-%d").cfg

Refresh the page and the command should be modified from the originally pasted command, it becomes:
nvram save /tmp/router_config_$(date "+++).cfg

To boil the issue down further, using this simplified date command:
date +%F

Turns to:
date +�F

Something about the percent (%) symbol throws things off. There's a couple of workarounds I could think of, but I used the following command within the Scheduler (rather than using a script on the filesystem):
nvram save /tmp/router_config_$(date -I).cfg

Just reporting in case any others stumble upon a similar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant