Community discussions

MUM Europe 2020
 
1001001
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Mon Sep 24, 2012 12:46 pm

[solved]Append string to command in variable

Mon Jun 20, 2016 11:40 am

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
Last edited by 1001001 on Mon Jun 20, 2016 12:35 pm, edited 1 time in total.
 
1001001
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Mon Sep 24, 2012 12:46 pm

Re: Append string to command in variable

Mon Jun 20, 2016 12:33 pm

For everyone interested I found the solution.
It has to look like this:
user=[:put "guest-network $[/system routerboard get serial-number]"]
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 1763
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: [solved]Append string to command in variable

Mon Jun 20, 2016 2:36 pm

Real admins use real keyboards.

Who is online

Users browsing this forum: durrsaku, MSN [Bot] and 119 guests