Community discussions

MikroTik App
 
noir
newbie
Topic Author
Posts: 31
Joined: Wed Dec 15, 2004 8:43 am
Location: South Africa

append number to text

Sat May 07, 2005 1:14 pm

I am trying to write a script to test a project we are working on.

Lets say i have a :for e from 1 to 10 do ={
: log message="hello"&e
}

basically what I want to happen is in the logs it must look like this
hello1
hello2
hello3
ect.

This i want to adapt to connection marking in the firewall mangle rules.
 
User avatar
[ASM]
Member Candidate
Member Candidate
Posts: 284
Joined: Sun Jun 06, 2004 12:59 am
Location: Sofia, Bulgaria
Contact:

Sat May 07, 2005 10:52 pm

Try:
:for i from 1 to 10 do {
/ip firewall mangle add src-address=("192.168.0." . $i . "/32") ...
}

Who is online

Users browsing this forum: No registered users and 5 guests