Page 1 of 1

[solved]Append string to command in variable

Posted: Mon Jun 20, 2016 11:40 am
by 1001001
Hello,

I'm currently trying the following:

Set the user of a ppp device to serialnumber + string. I've tried a few things but it won't work.

It should look like this

user=[/system routerboard get serial-number]-guest-network

Is this possible?

Best regards

Re: Append string to command in variable

Posted: Mon Jun 20, 2016 12:33 pm
by 1001001
For everyone interested I found the solution.
It has to look like this:
user=[:put "guest-network $[/system routerboard get serial-number]"]

Re: [solved]Append string to command in variable

Posted: Mon Jun 20, 2016 2:36 pm
by BartoszP