Community discussions

MikroTik App

Search found 2 matches

by Fantomas
Wed Jan 13, 2021 5:52 pm
Forum: Scripting
Topic: Scripting - FIND with Wildcard
Replies: 11
Views: 12426

Re: Scripting - FIND with Wildcard

Escaping \$ works fine. But I must be missing something since escaping a dot like \. gives me a syntax error. I'd like to prevent script from potentially finding files that have longer extensions: { :local mm "01" :local yyyy 2021 :foreach FILE in=[/file find name~"^disk1/backups/$yyy...
by Fantomas
Wed Jan 13, 2021 1:49 pm
Forum: Scripting
Topic: Command to create directory?
Replies: 6
Views: 14250

Re: Command to create directory?

No idea why the script creates user, group and whatever. Given you have http-ssl service enabled this should suffice: /tool fetch https://127.0.0.1/ dst-path=path/to/create/xxx Alternatively use whatever webserver. It creates a file as well, just remove that: /file remove path/to/create/xxx How abo...